UNPKG

@teambit/harmony

Version:
12 lines (11 loc) 438 B
export type RuntimeDefProps = { name: string; }; export declare class RuntimeDefinition { readonly name: string; readonly filePredicate: (filePath: string, name: string) => boolean; constructor(name: string, filePredicate?: (filePath: string, name: string) => boolean); getRuntimeFile(paths: string[]): string | undefined; require(file: string): void; static create(def: RuntimeDefProps): RuntimeDefinition; }