Hook useBoolSetting()
useBoolSetting(
path:string,key:string,defaultValue?:boolean): [boolean, (value:string|boolean) =>void]
Source: settings.ts
Returns the boolean value of a setting and a function to update it
Parameters
path
string
The path of the settings file
key
string
The key of the setting
defaultValue?
boolean
The default value of the setting
Returns
[boolean, (value: string | boolean) => void]
The boolean value of a setting and a function to update it