eslint-plugin-export-scope
Version:
Don't leak LOCAL utils, states, components into the global scope
20 lines (19 loc) • 1.27 kB
TypeScript
import type { WithMetadata, CompletionInfo, CompletionEntry, Declaration, ExportAssignment, VariableDeclaration, Expression, ArrayLiteralExpression } from "typescript";
export declare const entry: (name: string, kind: CompletionEntry["kind"]) => CompletionEntry;
export declare const getNewCompletions: () => WithMetadata<CompletionInfo>;
export declare const getParentCompletions: (rootDir: string, importDir: string) => WithMetadata<CompletionInfo>;
/**
* This function should us isExportAssignment from 'typescript',
* but it relies on SyntaxKind which differs based on the urser's ts version
*/
export declare const isExportAssignment: (declaration: Declaration | undefined) => declaration is ExportAssignment;
/**
* This function should us isVariableDeclaration from 'typescript',
* but it relies on SyntaxKind which differs based on the urser's ts version
*/
export declare const isVariableDeclaration: (declaration: Declaration | undefined) => declaration is VariableDeclaration;
/**
* This function should us isArrayLiteralExpression from 'typescript',
* but it relies on SyntaxKind which differs based on the urser's ts version
*/
export declare const isArrayLiteralExpression: (expression: Expression | undefined) => expression is ArrayLiteralExpression;