UNPKG

588 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2import type { ExportAllDeclaration, ExportNamedDeclaration, ImportDeclaration } from '@babel/types';
3import type FileState from '../FileState.js';
4import ignoreImporter from './ignoreImporter.js';
5import fsImporter from './fsImporter.js';
6import makeFsImporter from './makeFsImporter.js';
7export type ImportPath = NodePath<ExportAllDeclaration | ExportNamedDeclaration | ImportDeclaration>;
8export type Importer = (path: ImportPath, name: string, file: FileState) => NodePath | null;
9export { fsImporter, ignoreImporter, makeFsImporter };