1 | import ChainResolver from './ChainResolver.js';
|
2 | import FindAllDefinitionsResolver from './FindAllDefinitionsResolver.js';
|
3 | import FindAnnotatedDefinitionsResolver from './FindAnnotatedDefinitionsResolver.js';
|
4 | import FindExportedDefinitionsResolver from './FindExportedDefinitionsResolver.js';
|
5 | import type { NodePath } from '@babel/traverse';
|
6 | import type FileState from '../FileState.js';
|
7 | import type { ArrowFunctionExpression, CallExpression, ClassDeclaration, ClassExpression, FunctionDeclaration, FunctionExpression, ObjectExpression, ObjectMethod } from '@babel/types';
|
8 | export type StatelessComponentNode = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | ObjectMethod;
|
9 | export type ComponentNode = CallExpression | ClassDeclaration | ClassExpression | ObjectExpression | StatelessComponentNode;
|
10 | export type ComponentNodePath = NodePath<ComponentNode>;
|
11 | export type ResolverFunction = (file: FileState) => ComponentNodePath[];
|
12 | export interface ResolverClass {
|
13 | resolve: ResolverFunction;
|
14 | }
|
15 | export type Resolver = ResolverClass | ResolverFunction;
|
16 | export { FindAllDefinitionsResolver, FindAnnotatedDefinitionsResolver, FindExportedDefinitionsResolver, ChainResolver, };
|