mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-16 06:28:12 -05:00
Add types
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user