Skip to content

ProtectionLevel

ts
type ProtectionLevel = "none" | "boundary" | "sandbox" | "hardened";

Represents the level of protection while using Warner.

  • none: No protection, there will be no warnings.
  • boundary: Warns when you use Warner incorrectly. Often uses fallbacks.
  • sandbox: Warns when you use Warner incorrectly with hints.. Often uses fallbacks.
  • hardened: Throws errors when you use Warner incorrectly. Does not use fallbacks.