lavamoat-core
Version:
LavaMoat kernel and utils
31 lines (28 loc) • 1.08 kB
JavaScript
// @ts-check
/**
* Value of the {@link LavaMoatOpts.scuttleGlobalThis} option.
*
* @typedef LavaMoatScuttleOpts
* @property {boolean} [enabled]
* @property {string[]} [exceptions]
* @property {string} [scuttlerName]
*/
/**
* Options for LavaMoat
*
* @typedef LavaMoatOpts
* @property {LavaMoatScuttleOpts} [scuttleGlobalThis] Enable or disable
* scuttling of `globalThis`
* @property {string[]} [scuttleGlobalThisExceptions]
* @property {boolean} [writeAutoPolicy] Automatically write a policy file
* @property {boolean} [writeAutoPolicyDebug] Automatically write a debug policy
* file
* @property {boolean} [writeAutoPolicyAndRun] Automatically write a policy file
* and run the application
* @property {string} [policyPath] Path to policy file
* @property {string} [policyDebugPath] Path to policy debug file
* @property {string} [policyOverridePath] Path to policy override file
* @property {string} [projectRoot] Path to project root
* @property {boolean} [debugMode] Enable debug mode
* @property {boolean} [statsMode] Enable stats mode
*/