Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68f8f22

Browse files
authored
Merge pull requestmicrosoft#38425 from dsherret/fixJSDocTagFactoryFuncReturnTypes
Fix some JSDoc factory function return types
2 parentsc526b42 +84f89f8 commit68f8f22

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

‎src/compiler/factoryPublic.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,23 +2610,23 @@ namespace ts {
26102610
}
26112611

26122612
exportfunctioncreateJSDocAuthorTag(comment?:string){
2613-
returncreateJSDocTag(SyntaxKind.JSDocAuthorTag,"author",comment);
2613+
returncreateJSDocTag<JSDocAuthorTag>(SyntaxKind.JSDocAuthorTag,"author",comment);
26142614
}
26152615

26162616
exportfunctioncreateJSDocPublicTag(){
2617-
returncreateJSDocTag(SyntaxKind.JSDocPublicTag,"public");
2617+
returncreateJSDocTag<JSDocPublicTag>(SyntaxKind.JSDocPublicTag,"public");
26182618
}
26192619

26202620
exportfunctioncreateJSDocPrivateTag(){
2621-
returncreateJSDocTag(SyntaxKind.JSDocPrivateTag,"private");
2621+
returncreateJSDocTag<JSDocPrivateTag>(SyntaxKind.JSDocPrivateTag,"private");
26222622
}
26232623

26242624
exportfunctioncreateJSDocProtectedTag(){
2625-
returncreateJSDocTag(SyntaxKind.JSDocProtectedTag,"protected");
2625+
returncreateJSDocTag<JSDocProtectedTag>(SyntaxKind.JSDocProtectedTag,"protected");
26262626
}
26272627

26282628
exportfunctioncreateJSDocReadonlyTag(){
2629-
returncreateJSDocTag(SyntaxKind.JSDocReadonlyTag,"readonly");
2629+
returncreateJSDocTag<JSDocReadonlyTag>(SyntaxKind.JSDocReadonlyTag,"readonly");
26302630
}
26312631

26322632
exportfunctionappendJSDocToContainer(node:JSDocContainer,jsdoc:JSDoc){

‎tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4272,11 +4272,11 @@ declare namespace ts {
42724272
functioncreateJSDocParameterTag(typeExpression:JSDocTypeExpression|undefined,name:EntityName,isNameFirst:boolean,isBracketed:boolean,comment?:string):JSDocParameterTag;
42734273
functioncreateJSDocTypeLiteral(jsDocPropertyTags?:readonlyJSDocPropertyLikeTag[],isArrayType?:boolean):JSDocTypeLiteral;
42744274
functioncreateJSDocImplementsTag(classExpression:JSDocImplementsTag["class"],comment?:string):JSDocImplementsTag;
4275-
functioncreateJSDocAuthorTag(comment?:string):JSDocTag;
4276-
functioncreateJSDocPublicTag():JSDocTag;
4277-
functioncreateJSDocPrivateTag():JSDocTag;
4278-
functioncreateJSDocProtectedTag():JSDocTag;
4279-
functioncreateJSDocReadonlyTag():JSDocTag;
4275+
functioncreateJSDocAuthorTag(comment?:string):JSDocAuthorTag;
4276+
functioncreateJSDocPublicTag():JSDocPublicTag;
4277+
functioncreateJSDocPrivateTag():JSDocPrivateTag;
4278+
functioncreateJSDocProtectedTag():JSDocProtectedTag;
4279+
functioncreateJSDocReadonlyTag():JSDocReadonlyTag;
42804280
functionappendJSDocToContainer(node:JSDocContainer,jsdoc:JSDoc):JSDocContainer;
42814281
functioncreateJsxElement(openingElement:JsxOpeningElement,children:readonlyJsxChild[],closingElement:JsxClosingElement):JsxElement;
42824282
functionupdateJsxElement(node:JsxElement,openingElement:JsxOpeningElement,children:readonlyJsxChild[],closingElement:JsxClosingElement):JsxElement;

‎tests/baselines/reference/api/typescript.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4272,11 +4272,11 @@ declare namespace ts {
42724272
functioncreateJSDocParameterTag(typeExpression:JSDocTypeExpression|undefined,name:EntityName,isNameFirst:boolean,isBracketed:boolean,comment?:string):JSDocParameterTag;
42734273
functioncreateJSDocTypeLiteral(jsDocPropertyTags?:readonlyJSDocPropertyLikeTag[],isArrayType?:boolean):JSDocTypeLiteral;
42744274
functioncreateJSDocImplementsTag(classExpression:JSDocImplementsTag["class"],comment?:string):JSDocImplementsTag;
4275-
functioncreateJSDocAuthorTag(comment?:string):JSDocTag;
4276-
functioncreateJSDocPublicTag():JSDocTag;
4277-
functioncreateJSDocPrivateTag():JSDocTag;
4278-
functioncreateJSDocProtectedTag():JSDocTag;
4279-
functioncreateJSDocReadonlyTag():JSDocTag;
4275+
functioncreateJSDocAuthorTag(comment?:string):JSDocAuthorTag;
4276+
functioncreateJSDocPublicTag():JSDocPublicTag;
4277+
functioncreateJSDocPrivateTag():JSDocPrivateTag;
4278+
functioncreateJSDocProtectedTag():JSDocProtectedTag;
4279+
functioncreateJSDocReadonlyTag():JSDocReadonlyTag;
42804280
functionappendJSDocToContainer(node:JSDocContainer,jsdoc:JSDoc):JSDocContainer;
42814281
functioncreateJsxElement(openingElement:JsxOpeningElement,children:readonlyJsxChild[],closingElement:JsxClosingElement):JsxElement;
42824282
functionupdateJsxElement(node:JsxElement,openingElement:JsxOpeningElement,children:readonlyJsxChild[],closingElement:JsxClosingElement):JsxElement;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp