@@ -19,15 +19,18 @@ export declare function printconsole(
19
19
) : void
20
20
21
21
// Enviornment
22
- export declare function getgenv ( ) : { [ a : string ] : any }
22
+ export declare function getgenv ( ) : { [ a : string ] : any }
23
23
export declare function getrenv ( ) : table
24
24
export declare function getreg ( ) : table
25
25
export declare function getgc ( include_tables ?: boolean ) : table
26
26
export declare function getinstances ( ) : table
27
27
export declare function getnilinstances ( ) : table
28
28
export declare function getloadedmodules ( ) : table
29
29
export declare function getconnections ( signal : RBXScriptSignal ) : table
30
- export declare function firesignal ( signal : RBXScriptSignal , ...args : table ) : void
30
+ export declare function firesignal (
31
+ signal : RBXScriptSignal ,
32
+ ...args : table
33
+ ) : void
31
34
export declare function fireclickdetector (
32
35
detector : ClickDetector ,
33
36
distance ?: number ,
@@ -40,7 +43,10 @@ export declare function firetouchinterest(
40
43
toggle ?: number
41
44
) : void
42
45
export declare function setscriptable ( object : Instance , toggle : boolean ) : void
43
- export declare function gethiddenproperty ( object : Instance , property : string ) : void
46
+ export declare function gethiddenproperty (
47
+ object : Instance ,
48
+ property : string
49
+ ) : void
44
50
export declare function sethiddenproperty (
45
51
object : Instance ,
46
52
property : string ,
@@ -106,7 +112,11 @@ export declare function saveinstance(
106
112
}
107
113
) : void
108
114
export declare function decompile ( script : Instance ) : string
109
- export declare function messagebox ( text : string , title : string , flag : number ) : number
115
+ export declare function messagebox (
116
+ text : string ,
117
+ title : string ,
118
+ flag : number
119
+ ) : number
110
120
export declare function queue_on_teleport ( script : string ) : undefined
111
121
112
122
// Reflection
@@ -242,18 +252,18 @@ type DrawingType =
242
252
type DrawingTypes < T extends DrawingType > = T extends "Line"
243
253
? LineDrawing
244
254
: T extends "Text"
245
- ? TextDrawing
246
- : T extends "Image"
247
- ? ImageDrawing
248
- : T extends "Circle"
249
- ? CircleDrawing
250
- : T extends "Square"
251
- ? SquareDrawing
252
- : T extends "Quad"
253
- ? QuadDrawing
254
- : T extends "Triangle"
255
- ? TriangleDrawing
256
- : BaseDrawing
255
+ ? TextDrawing
256
+ : T extends "Image"
257
+ ? ImageDrawing
258
+ : T extends "Circle"
259
+ ? CircleDrawing
260
+ : T extends "Square"
261
+ ? SquareDrawing
262
+ : T extends "Quad"
263
+ ? QuadDrawing
264
+ : T extends "Triangle"
265
+ ? TriangleDrawing
266
+ : BaseDrawing
257
267
258
268
interface DrawingConstructor {
259
269
new < T extends DrawingType > ( type : T ) : DrawingTypes < T >
@@ -292,4 +302,12 @@ export declare const actors: {
292
302
getactors ( ) : string
293
303
run_on_actor ( actor : Actor , script : Script ) : string
294
304
is_parallel ( ) : boolean
295
- }
305
+ }
306
+
307
+ /**
308
+ * If any of the functions in `funcs` fail then the function will return false
309
+ * @param funcs Any number of parameters that are functions.
310
+ */
311
+ export declare function ensure_executor_functions_access (
312
+ ...funcs : ( ( ...args : any [ ] ) => any ) [ ] // able to take in any type of function
313
+ ) : boolean
0 commit comments