UNPKG

554 BTypeScriptView Raw
1import type FileState from '../FileState.js';
2import type { ComponentNodePath, ResolverClass } from './index.js';
3interface FindAnnotatedDefinitionsResolverOptions {
4 annotation?: string;
5}
6/**
7 * Given an AST, this function tries to find all react components which
8 * are annotated with an annotation
9 */
10export default class FindAnnotatedDefinitionsResolver implements ResolverClass {
11 annotation: string;
12 constructor({ annotation, }?: FindAnnotatedDefinitionsResolverOptions);
13 resolve(file: FileState): ComponentNodePath[];
14}
15export {};