UNPKG

@stryke/helpers

Version:

A package containing miscellaneous helper functions that are used across many different Storm Software projects.

8 lines (7 loc) 243 B
/** * Memoizes a function based on its string identifier. * * @param fn - The function to memoize. * @returns A memoized version of the input function. */ export declare const memoizeOnId: <T>(fn: (id: string) => T) => (id: string) => T;