Skip to content

Commit ccb1b76

Browse files
committed
fix(types): add "null" to LuaPrimitive and replace return "undefined" to "void" in LuaFunction
1 parent 2fcec56 commit ccb1b76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

types/lua-state-native.module.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ declare module '*lua-state.node' {
3434
| 'utf8'
3535

3636
export type LuaValue = LuaPrimitive | LuaTable | LuaFunction | LuaValue[]
37-
export type LuaPrimitive = string | number | boolean | Date | bigint
38-
export type LuaFunction = (...args: LuaValue[]) => LuaValue | undefined
37+
export type LuaPrimitive = string | number | boolean | Date | bigint | null
38+
export type LuaFunction = (...args: LuaValue[]) => LuaValue | void
3939
export type LuaTable = {
4040
[index: string]: LuaValue | undefined
4141
}

0 commit comments

Comments
 (0)