Skip to content

API > wxt/browser > Browser > events > Rule

Interface: Rule

Description of a declarative rule for handling events.

Contents

Properties

actions

actions: any[]

List of actions that are triggered if one of the condtions is fulfilled.

Source

packages/browser/src/gen/index.d.ts:4355


conditions

conditions: any[]

List of conditions that can trigger the actions.

Source

packages/browser/src/gen/index.d.ts:4351


id

id?: string

Optional. Optional identifier that allows referencing this rule.

Source

packages/browser/src/gen/index.d.ts:4353


priority

priority?: number

Optional. Optional priority of this rule. Defaults to 100.

Source

packages/browser/src/gen/index.d.ts:4349


tags

tags?: string[]

Optional.

Since

Chrome 28 Tags can be used to annotate rules and perform operations on sets of rules.

Source

packages/browser/src/gen/index.d.ts:4361


Generated using typedoc-plugin-markdown and TypeDoc