@nestjsplus/lib-starter
Version:
Boilerplate for building installable NestJS libraries
13 lines (12 loc) • 459 B
TypeScript
export interface Reader {
list(): string[] | Promise<string[]>;
read(name: string): string | Promise<string>;
readAnyOf(filenames: string[]): string | Promise<string | undefined>;
}
export declare class FileSystemReader implements Reader {
private readonly directory;
constructor(directory: string);
list(): Promise<string[]>;
read(name: string): Promise<string>;
readAnyOf(filenames: string[]): Promise<string | undefined>;
}