From b8314b04326f1635f9b7c8b6575d6e826d0fa470 Mon Sep 17 00:00:00 2001 From: XmiliaH Date: Sun, 31 Jul 2022 17:34:22 +0200 Subject: [PATCH] Allow false for require option --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 1e93c7a..a0becc0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -76,7 +76,7 @@ export interface NodeVMOptions extends VMOptions { /** `inherit` to enable console, `redirect` to redirect to events, `off` to disable console (default: `inherit`). */ console?: "inherit" | "redirect" | "off"; /** `true` or an object to enable `require` options (default: `false`). */ - require?: true | VMRequire; + require?: boolean | VMRequire; /** **WARNING**: This should be disabled. It allows to create a NodeVM form within the sandbox which could return any host module. * `true` to enable VMs nesting (default: `false`). */ nesting?: boolean;