Merge pull request #38425 from dsherret/fixJSDocTagFactoryFuncReturnTypes

Fix some JSDoc factory function return types
This commit is contained in:
Nathan Shively-Sanders 2020-05-20 13:22:21 -07:00 committed by GitHub
commit 68f8f22032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View file

@ -2610,23 +2610,23 @@ namespace ts {
} }
export function createJSDocAuthorTag(comment?: string) { export function createJSDocAuthorTag(comment?: string) {
return createJSDocTag(SyntaxKind.JSDocAuthorTag, "author", comment); return createJSDocTag<JSDocAuthorTag>(SyntaxKind.JSDocAuthorTag, "author", comment);
} }
export function createJSDocPublicTag() { export function createJSDocPublicTag() {
return createJSDocTag(SyntaxKind.JSDocPublicTag, "public"); return createJSDocTag<JSDocPublicTag>(SyntaxKind.JSDocPublicTag, "public");
} }
export function createJSDocPrivateTag() { export function createJSDocPrivateTag() {
return createJSDocTag(SyntaxKind.JSDocPrivateTag, "private"); return createJSDocTag<JSDocPrivateTag>(SyntaxKind.JSDocPrivateTag, "private");
} }
export function createJSDocProtectedTag() { export function createJSDocProtectedTag() {
return createJSDocTag(SyntaxKind.JSDocProtectedTag, "protected"); return createJSDocTag<JSDocProtectedTag>(SyntaxKind.JSDocProtectedTag, "protected");
} }
export function createJSDocReadonlyTag() { export function createJSDocReadonlyTag() {
return createJSDocTag(SyntaxKind.JSDocReadonlyTag, "readonly"); return createJSDocTag<JSDocReadonlyTag>(SyntaxKind.JSDocReadonlyTag, "readonly");
} }
export function appendJSDocToContainer(node: JSDocContainer, jsdoc: JSDoc) { export function appendJSDocToContainer(node: JSDocContainer, jsdoc: JSDoc) {

View file

@ -4272,11 +4272,11 @@ declare namespace ts {
function createJSDocParameterTag(typeExpression: JSDocTypeExpression | undefined, name: EntityName, isNameFirst: boolean, isBracketed: boolean, comment?: string): JSDocParameterTag; function createJSDocParameterTag(typeExpression: JSDocTypeExpression | undefined, name: EntityName, isNameFirst: boolean, isBracketed: boolean, comment?: string): JSDocParameterTag;
function createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral; function createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral;
function createJSDocImplementsTag(classExpression: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag; function createJSDocImplementsTag(classExpression: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag;
function createJSDocAuthorTag(comment?: string): JSDocTag; function createJSDocAuthorTag(comment?: string): JSDocAuthorTag;
function createJSDocPublicTag(): JSDocTag; function createJSDocPublicTag(): JSDocPublicTag;
function createJSDocPrivateTag(): JSDocTag; function createJSDocPrivateTag(): JSDocPrivateTag;
function createJSDocProtectedTag(): JSDocTag; function createJSDocProtectedTag(): JSDocProtectedTag;
function createJSDocReadonlyTag(): JSDocTag; function createJSDocReadonlyTag(): JSDocReadonlyTag;
function appendJSDocToContainer(node: JSDocContainer, jsdoc: JSDoc): JSDocContainer; function appendJSDocToContainer(node: JSDocContainer, jsdoc: JSDoc): JSDocContainer;
function createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; function createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement;
function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement;

View file

@ -4272,11 +4272,11 @@ declare namespace ts {
function createJSDocParameterTag(typeExpression: JSDocTypeExpression | undefined, name: EntityName, isNameFirst: boolean, isBracketed: boolean, comment?: string): JSDocParameterTag; function createJSDocParameterTag(typeExpression: JSDocTypeExpression | undefined, name: EntityName, isNameFirst: boolean, isBracketed: boolean, comment?: string): JSDocParameterTag;
function createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral; function createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral;
function createJSDocImplementsTag(classExpression: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag; function createJSDocImplementsTag(classExpression: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag;
function createJSDocAuthorTag(comment?: string): JSDocTag; function createJSDocAuthorTag(comment?: string): JSDocAuthorTag;
function createJSDocPublicTag(): JSDocTag; function createJSDocPublicTag(): JSDocPublicTag;
function createJSDocPrivateTag(): JSDocTag; function createJSDocPrivateTag(): JSDocPrivateTag;
function createJSDocProtectedTag(): JSDocTag; function createJSDocProtectedTag(): JSDocProtectedTag;
function createJSDocReadonlyTag(): JSDocTag; function createJSDocReadonlyTag(): JSDocReadonlyTag;
function appendJSDocToContainer(node: JSDocContainer, jsdoc: JSDoc): JSDocContainer; function appendJSDocToContainer(node: JSDocContainer, jsdoc: JSDoc): JSDocContainer;
function createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; function createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement;
function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement;