RulesetManager Interface
Presentation ruleset registry.
Methods
Name | Description | |
---|---|---|
add(ruleset: Ruleset): Promise<RegisteredRuleset> | Register the supplied ruleset | |
clear(): Promise<void> | Remove all rulesets registered in this session. | |
get(id: string): Promise<undefined | RegisteredRuleset> | Get a ruleset with the specified id. | |
modify(ruleset: RegisteredRuleset, newRules: Omit<Ruleset, "id">): Promise<RegisteredRuleset> | Modify the given pre-registered ruleset | Beta |
remove(ruleset: RegisteredRuleset | [string, string]): Promise<boolean> | Unregister the supplied ruleset |
Properties
Name | Type | Description | |
---|---|---|---|
onRulesetModified | BeEvent<(curr: RegisteredRuleset, prev: Ruleset) => void> | An event invoked one a ruleset is modified using RulesetManager.modify function. | Beta |
Defined in
Last Updated: 30 November, 2023