UNPKG

442 BTypeScriptView Raw
1export interface IDataReader<T = any> {
2 basename: string;
3 read: (file: string) => T | void;
4}
5export interface IClosestDataResult {
6 readonly path: string;
7 readonly data: any;
8}
9declare function closestFileData(relPath: string, oneOrMoreReader: IDataReader | IDataReader[]): IClosestDataResult | void;
10declare const _default: typeof closestFileData & {
11 cache: {
12 clear: () => any;
13 };
14};
15export default _default;