diff --git a/typescript/types/main.d.ts b/typescript/types/main.d.ts index b5f21832c..47ae1f66b 100644 --- a/typescript/types/main.d.ts +++ b/typescript/types/main.d.ts @@ -12538,6 +12538,14 @@ declare const global: { [key: string]: any; } +/** + * A reference to the global scope, where everything is defined. + * This is identical to `global` but was introduced in the ECMAScript spec. + * @returns {any} The global scope + * @url http://www.espruino.com/Reference#l__global_globalThis + */ +// globalThis - builtin + /** * A variable containing the arguments given to the function: * ``` @@ -14475,4 +14483,4 @@ declare module "Storage" { * @url http://www.espruino.com/Reference#l_Storage_open */ function open(name: string, mode: "r" | "w" | "a"): StorageFile; -} +} \ No newline at end of file