Options
All
  • Public
  • Public/Protected
  • All
Menu

memosel

Index

Type Aliases

Memosel: { (): SelectorBuilder<{}, {}, void, never>; <P>(): SelectorBuilder<P, {}, void, never>; <P, R>(fn: ((param: P) => R), options?: Options): Selector<P, R>; <F, R, P, K>(fn: ((param: P, ...args: K) => R), key: ((...args: F) => K), options?: Options): SelectorFactory<F, P, R> }

Type declaration

    • Returns SelectorBuilder<{}, {}, void, never>

    • Type Parameters

      • P

      Returns SelectorBuilder<P, {}, void, never>

    • create a memoized function

      Type Parameters

      • P

      • R

      Parameters

      • fn: ((param: P) => R)
          • (param: P): R
          • Parameters

            • param: P

            Returns R

      • Optional options: Options

      Returns Selector<P, R>

    • create memoized function factory

      Type Parameters

      • F extends any[]

      • R

      • P

      • K extends any[]

      Parameters

      • fn: ((param: P, ...args: K) => R)
          • (param: P, ...args: K): R
          • Parameters

            • param: P
            • Rest ...args: K

            Returns R

      • key: ((...args: F) => K)
          • (...args: F): K
          • Parameters

            • Rest ...args: F

            Returns K

      • Optional options: Options

      Returns SelectorFactory<F, P, R>

Functions

Generated using TypeDoc