Add types

This commit is contained in:
Nathan Shively-Sanders
2018-05-01 10:16:47 -07:00
parent f9f9157126
commit 5fab72fae4

View File

@@ -411,9 +411,11 @@ namespace ts {
JSDocVariadicType,
JSDocComment,
JSDocTypeLiteral,
JSDocSignature,
JSDocTag,
JSDocAugmentsTag,
JSDocClassTag,
JSDocCallbackTag,
JSDocParameterTag,
JSDocReturnTag,
JSDocTypeTag,
@@ -822,6 +824,7 @@ namespace ts {
| FunctionTypeNode
| ConstructorTypeNode
| JSDocFunctionType
| JSDocSignature // TODO: Different from JSDocFunctionType??????
| FunctionDeclaration
| MethodDeclaration
| ConstructorDeclaration
@@ -2385,6 +2388,19 @@ namespace ts {
typeExpression?: JSDocTypeExpression | JSDocTypeLiteral;
}
export interface JSDocCallbackTag extends JSDocTag, NamedDeclaration {
parent: JSDoc;
kind: SyntaxKind.JSDocCallbackTag;
fullName?: JSDocNamespaceDeclaration | Identifier;
name?: Identifier; // TODO: Not sure whether this rigamarole is needed for callback...but probably!
signature: JSDocSignature;
}
// TODO: name it JSDocSignatureDeclaration? Could just try to reuse JSDocTypeLiteral
export interface JSDocSignature extends JSDocType, SignatureDeclarationBase {
kind: SyntaxKind.JSDocSignature;
}
export interface JSDocPropertyLikeTag extends JSDocTag, Declaration {
parent: JSDoc;
name: EntityName;