Constructors
Methods
clear
- clear(): void
Returns void
delete
- delete(name: string): void
Returns void
disable
- disable(name: string): void
Returns void
enable
- enable(name: string): void
Returns void
get
- get(name: string): undefined | string
Returns undefined | string
getAll
- getAll(): SetIterator<string>
Returns SetIterator<string>
getDisabled
- getDisabled(): MapIterator<string>
Returns MapIterator<string>
getEnabled
- getEnabled(): MapIterator<string>
Returns MapIterator<string>
set
- set(name: string, value: string): void
Parameters
- name: string
- value: string
Returns void
toggleEnabled
- toggleEnabled(name: string): void
Returns void
toggleIsSet
- toggleIsSet(name: string, value: string): void
Parameters
- name: string
- value: string
Returns void
Helps to manage options. The main addition to simply using a Set are the toggle functions and the support for temporarily disabling an option.