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 | |
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 modify function. |
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.