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

ParameterTypeDescription
keystringThe preference
valunknownThe value
Returns:

void