lavamoat-core
Version:
LavaMoat kernel and utils
58 lines • 1.37 kB
TypeScript
/**
* Value of the {@link LavaMoatOpts.scuttleGlobalThis} option.
*/
export type LavaMoatScuttleOpts = {
enabled?: boolean | undefined;
exceptions?: string[] | undefined;
scuttlerName?: string | undefined;
};
/**
* Options for LavaMoat
*/
export type LavaMoatOpts = {
/**
* Enable or disable
* scuttling of `globalThis`
*/
scuttleGlobalThis?: LavaMoatScuttleOpts | undefined;
scuttleGlobalThisExceptions?: string[] | undefined;
/**
* Automatically write a policy file
*/
writeAutoPolicy?: boolean | undefined;
/**
* Automatically write a debug policy
* file
*/
writeAutoPolicyDebug?: boolean | undefined;
/**
* Automatically write a policy file
* and run the application
*/
writeAutoPolicyAndRun?: boolean | undefined;
/**
* Path to policy file
*/
policyPath?: string | undefined;
/**
* Path to policy debug file
*/
policyDebugPath?: string | undefined;
/**
* Path to policy override file
*/
policyOverridePath?: string | undefined;
/**
* Path to project root
*/
projectRoot?: string | undefined;
/**
* Enable debug mode
*/
debugMode?: boolean | undefined;
/**
* Enable stats mode
*/
statsMode?: boolean | undefined;
};
//# sourceMappingURL=options.d.ts.map