UNPKG

405 BTypeScriptView Raw
1import type FileState from '../FileState.js';
2import type { ComponentNodePath, ResolverClass } from './index.js';
3/**
4 * Given an AST, this function tries to find all object expressions that are
5 * passed to `React.createClass` calls, by resolving all references properly.
6 */
7export default class FindAllDefinitionsResolver implements ResolverClass {
8 resolve(file: FileState): ComponentNodePath[];
9}