UNPKG

@conjecture-dev/g-std

Version:

A collection of TypeScript utility functions for common programming tasks

11 lines (10 loc) 325 B
export type Hash<T> = string & { tag: 'hash'; _type: T; }; export declare const Hash: <T>(x: T) => Hash<T>; export declare const iterateFiles: (directory: string) => Generator<string>; export declare const getFiletreeDefaults: (directoryPath: string) => Promise<Array<{ path: string; defaultExport: any; }>>;