The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.
Home > @edtr-io/core > setDefaultPreference
setDefaultPreference() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Sets a preference
Signature:export declare function setDefaultPreference(key: string, val: unknown): void
Parameters
Parameter | Type | Description |
---|---|---|
key | string | The preference |
val | unknown | The value |
void