Util.d.ts 932 B

1234567891011121314
  1. export declare const isNothing: (value: any) => boolean;
  2. export declare const isString: (val: any) => val is string;
  3. export declare const toAbsolutePath: (path: string) => string;
  4. export declare const ensureString: (defaultValue: string, text?: string) => string;
  5. export declare const compact: (input: any[]) => string[];
  6. export declare const toStringArray: (input: any[]) => string[];
  7. export declare const isFileSync: (path: string) => boolean;
  8. export declare const readFileSync: (path: string) => string | undefined;
  9. export declare const filePathsP: (basePath: string, ns: string) => Promise<string[]>;
  10. export declare const hash: (...values: any[]) => string | undefined;
  11. export declare function getValueP(path: string, defaultValue?: any): Promise<any>;
  12. export declare const toGetValue: (data: any) => any;
  13. export declare const toJson: (value: any, ttl: number) => string;
  14. export declare const isExpired: (data: any) => boolean;