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>    

Defined in

Last Updated: 11 June, 2024