ohctechv3/.svn/pristine/07/07f1a6d835a9ca01ed10896c285ea01d732afd89.svn-base
2024-10-28 15:03:36 +05:30

29 lines
731 B
Plaintext

import eslint from 'eslint';
import estree from 'estree';
declare global {
interface ASTNode extends estree.BaseNode {
[_: string]: any; // TODO: fixme
}
type Scope = eslint.Scope.Scope;
type Token = eslint.AST.Token;
type Fixer = eslint.Rule.RuleFixer;
type JSXAttribute = ASTNode;
type JSXElement = ASTNode;
type JSXFragment = ASTNode;
type JSXSpreadAttribute = ASTNode;
type Context = eslint.Rule.RuleContext
type TypeDeclarationBuilder = (annotation: ASTNode, parentName: string, seen: Set<typeof annotation>) => object;
type TypeDeclarationBuilders = {
[k in string]: TypeDeclarationBuilder;
};
type UnionTypeDefinition = {
type: 'union' | 'shape';
children: unknown[];
};
}