Parameters
-
contentOptions: readonly ({
id: number;
kind: string;
name: string;
} & {
fileId?: null | number;
mediaItem?: null | {
id: number;
kind: string;
name: string;
} & ({ readonly file?: { readonly id: number; } | null | undefined; });
value?: unknown;
})[]
An object of typed options by option name
Get the typed options for the given config.
You need to have run the little type generator on your config.json.
NOTE: Nothing is validated for now. Cross your fingers.