Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
Add missing types in your own code
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn committed Dec 28, 2018
1 parent f02b62d commit 57b517c
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions analyze-scope.js
Expand Up @@ -21,6 +21,68 @@ const childVisitorKeys = require("./visitor-keys");
/** @typedef {import("estree").FunctionDeclaration} FunctionDeclaration */
/** @typedef {import("estree").FunctionExpression} FunctionExpression */
/** @typedef {import("estree").ArrowFunctionExpression} ArrowFunctionExpression */
/** @typedef {{
* id: { name: unknown },
* typeParameters: unknown,
* params: unknown[],
* returnType: unknown,
* computed: unknown,
* decorators: unknown[],
* key: unknown,
* typeAnnotation: unknown,
* value: unknown
* }} TSEmptyBodyFunctionDeclaration */
/** @typedef {{
* id: { name: unknown },
* typeParameters: unknown,
* params: unknown[],
* returnType: unknown,
* computed: unknown,
* decorators: unknown[],
* key: unknown,
* typeAnnotation: unknown,
* value: unknown
* }} TSEmptyBodyFunctionExpression */
/** @typedef {unknown} TSInterfaceDeclaration */
/** @typedef {unknown} TSTypeAnnotation */
/** @typedef {{ left: unknown }} TSTypeQuery */
/** @typedef {unknown} TSTypeParameterDeclaration */
/** @typedef {{
* computed: unknown,
* key: unknown,
* typeAnnotation: unknown,
* initializer: unknown
* }} TSPropertySignature */
/** @typedef {{
* id: { name: unknown },
* params: unknown[],
* typeParameters: unknown,
* members: unknown,
* computed: unknown,
* key: unknown,
* typeAnnotation: unknown,
* initializer: unknown
* }} TSMethodSignature */
/** @typedef {{
* id: { name: unknown },
* members: unknown[],
* }} TSEnumDeclaration */
/** @typedef {{
* id: { name: unknown },
* initializer: unknown,
* }} TSEnumMember */
/** @typedef {{
* id: { type: unknown },
* global: unknown,
* body: { body: unknown[] },
* }} TSModuleDeclaration */
/** @typedef {unknown} TSAbstractClassDeclaration */
/** @typedef {unknown} TSModuleBlock */
/** @typedef {{
* name: { type: unknown },
* moduleReference: unknown,
* }} TSImportEqualsDeclaration
*/

/**
* Define the override function of `Scope#__define` for global augmentation.
Expand Down

0 comments on commit 57b517c

Please sign in to comment.