Skip to content

Commit 29e94b0

Browse files
committed
feat(global): declare _G as typeof globalThis
1 parent 0a019a8 commit 29e94b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare const _VERSION: 'Lua 5.1' | 'Lua 5.2' | 'Lua 5.3' | 'Lua 5.4';
2222
* §2.2). Lua itself does not use this variable; changing its value does not
2323
* affect any environment, nor vice versa.
2424
*/
25-
declare const _G: Record<string, any>;
25+
declare const _G: typeof globalThis;
2626

2727
/**
2828
* Calls error if the value of its argument v is false (i.e., nil or false);

0 commit comments

Comments
 (0)