-
-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathtstl.d.ts
More file actions
24 lines (20 loc) · 586 Bytes
/
tstl.d.ts
File metadata and controls
24 lines (20 loc) · 586 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @noSelfInFile */
interface LuaMetatable {
_descriptors?: Record<string, PropertyDescriptor>;
__index?: any;
__newindex?: any;
__tostring?: any;
__errorToStringPatched?: boolean;
}
interface LuaClass extends LuaMetatable<any> {
prototype: LuaClassInstance;
[Symbol.hasInstance]?(instance: LuaClassInstance): any;
____super?: LuaClass;
}
interface LuaClassInstance extends LuaMetatable<any> {
constructor: LuaClass;
}
// Declare math atan2 for versions that have it instead of math.atan
declare namespace math {
const atan2: typeof atan;
}