Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GuardOptions

Configuration for the guard.

Use with the guard() method.

Hierarchy

  • GuardOptions

Index

Properties

Optional exitOnExtra

exitOnExtra: boolean

An optional flag to determine whether the guard should stop the process when permissions not listed in the granted array have been granted.

Optional exitOnMissing

exitOnMissing: boolean

An optional flag to determine whether the guard should stop the process when permissions listed in the granted array have not been granted.

Optional granted

granted: GuardGrant[]

An optional list of Deno permission names or descriptors that should be permitted by the guard

Optional log

log: boolean

An optional flag to determine the guard should log any warnings or errors to the console.

Optional revoke

revoke: boolean

An optional flag to determine whether the guard should revoke top-level permissions not listed in the granted array.

Generated using TypeDoc