UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

8 lines (7 loc) 327 B
type SimpleType = number | string | boolean | null | undefined; type FuncWithSimpleParams<T extends SimpleType[], R> = (...args: T) => R; export declare function memoize<T extends SimpleType[], R>(fn: FuncWithSimpleParams<T, R>, options?: { argsLength?: number; max?: number; }): FuncWithSimpleParams<T, R>; export {};