Skip to content

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 ​

ParameterType
keystring
contextDetermineExtensionContext

Returns ​

string | undefined

Released under the MIT License.