TypeScript API / laikacms/storage / DetermineExtension
Type Alias: DetermineExtension
ts
type DetermineExtension = (key, context) => string | undefined;Storage-side policy for picking the on-disk file extension when a new object is about to be written. Returning undefined lets the storage fall back to its defaultFileExtension.
Parameters
| Parameter | Type |
|---|---|
key | string |
context | DetermineExtensionContext |
Returns
string | undefined