API Documentation / @pinia/colada / toCacheKey
Type Alias: toCacheKey()
ts
type toCacheKey = {
(key): undefined;
(key): string;
(key): undefined | string;
};
Serializes the given key (query or mutation key) to a string.
Call Signature
ts
(key): undefined;
Parameters
key
undefined
Returns
undefined
Call Signature
ts
(key): string;
Parameters
key
Returns
string
Call Signature
ts
(key): undefined | string;
Parameters
key
undefined
| EntryKey
Returns
undefined
| string
Param
The key to serialize.