- Preparing search index...
- The search index is not available
moize
- compose(...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;
}>>
-
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;
}>>[]
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
Function
Name
compose
Memberof
module:moize
Alias
moize.compose
Description
method to compose moized methods and return a single moized function