Skip to content

TypeScript API / @laikacms/astro/loader / EntryOptions

Interface: EntryOptions ​

Properties ​

id? ​

ts
optional id?: (context) => string;

Derive the Astro entry id from a Laika key. Defaults to stripping the collection prefix.

Parameters ​

ParameterType
context{ collection: string; key: string; }
context.collectionstring
context.keystring

Returns ​

string


keyField? ​

ts
optional keyField?: string;

Copy the full Laika key into data under this name. Off by default.


versionField? ​

ts
optional versionField?: string;

Copy the record's version token into data under this name. Off by default.

Released under the MIT License.