Socket
Socket
Sign inDemoInstall

lua-types

Package Overview
Dependencies
13
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.10.0 to 2.10.1

13

core/debug.d.ts

@@ -195,6 +195,13 @@ // Based on https://www.lua.org/manual/5.3/manual.html#6.10

*/
function setmetatable<T, TIndex>(
function setmetatable<
T extends object,
TIndex extends object | ((this: T, key: any) => any) | undefined = undefined
>(
value: T,
table: LuaMetatable<T & TIndex, TIndex> | null | undefined
): T & TIndex;
table?: LuaMetatable<T, TIndex> | null
): TIndex extends (this: T, key: infer TKey) => infer TValue
? T & { [K in TKey & string]: TValue }
: TIndex extends object
? T & TIndex
: T;

@@ -201,0 +208,0 @@ /**

// Based on https://www.lua.org/manual/5.3/manual.html#2.4
interface LuaMetatable<T, TIndex extends object | ((this: T, key: any) => any) | undefined> {
interface LuaMetatable<
T,
TIndex extends object | ((this: T, key: any) => any) | undefined =
| object
| ((this: T, key: any) => any)
| undefined
> {
/**

@@ -5,0 +11,0 @@ * the addition (+) operation. If any operand for an addition is not a number

{
"name": "lua-types",
"version": "2.10.0",
"version": "2.10.1",
"description": "TypeScript definitions for Lua standard library",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc