@teambit/harmony
Version:
abstract extension system
12 lines (11 loc) • 438 B
TypeScript
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;
}