UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

5 lines (3 loc) 236 B
declare function createCachedImport<T>(name: string, imp: () => Promise<T>): () => T | Promise<T>; declare const cacheStringFunction: <T extends (str: string) => string>(fn: T) => T; export { cacheStringFunction, createCachedImport };