Function compose

  • Function

    Name

    compose

    Memberof

    module:moize

    Alias

    moize.compose

    Description

    method to compose moized methods and return a single moized function

    Parameters

    • Rest ...moized: Moize<Partial<{
          isDeepEqual: boolean;
          isPromise: boolean;
          isReact: boolean;
          isSerialized: boolean;
          isShallowEqual: boolean;
          matchesArg: IsEqual;
          matchesKey: IsMatchingKey;
          maxAge: number;
          maxArgs: number;
          maxSize: number;
          onCacheAdd: OnCacheOperation<Moizeable>;
          onCacheChange: OnCacheOperation<Moizeable>;
          onCacheHit: OnCacheOperation<Moizeable>;
          onExpire: OnExpire;
          profileName: string;
          serializer: Serialize;
          transformArgs: TransformKey;
          updateCacheForKey: UpdateCacheForKey;
          updateExpire: boolean;
      }>>[]

      the functions to compose

    Returns Moize<Partial<{
        isDeepEqual: boolean;
        isPromise: boolean;
        isReact: boolean;
        isSerialized: boolean;
        isShallowEqual: boolean;
        matchesArg: IsEqual;
        matchesKey: IsMatchingKey;
        maxAge: number;
        maxArgs: number;
        maxSize: number;
        onCacheAdd: OnCacheOperation<Moizeable>;
        onCacheChange: OnCacheOperation<Moizeable>;
        onCacheHit: OnCacheOperation<Moizeable>;
        onExpire: OnExpire;
        profileName: string;
        serializer: Serialize;
        transformArgs: TransformKey;
        updateCacheForKey: UpdateCacheForKey;
        updateExpire: boolean;
    }>>

    the composed function

Generated using TypeDoc