Files
Shifted/node_modules/react-docgen/dist/resolver/FindAnnotatedDefinitionsResolver.d.ts
2026-02-10 01:14:19 +00:00

16 lines
554 B
TypeScript

import type FileState from '../FileState.js';
import type { ComponentNodePath, ResolverClass } from './index.js';
interface FindAnnotatedDefinitionsResolverOptions {
annotation?: string;
}
/**
* Given an AST, this function tries to find all react components which
* are annotated with an annotation
*/
export default class FindAnnotatedDefinitionsResolver implements ResolverClass {
annotation: string;
constructor({ annotation, }?: FindAnnotatedDefinitionsResolverOptions);
resolve(file: FileState): ComponentNodePath[];
}
export {};