mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
JS: Custom scope param in load() typedef
This commit is contained in:
+3
-2
@@ -50,11 +50,12 @@ declare const __filepath: string;
|
||||
* @brief Reads a JS value from a file
|
||||
*
|
||||
* Reads a file at the specified path, interprets it as a JS value and returns
|
||||
* said value.
|
||||
* the last value pushed on the stack.
|
||||
*
|
||||
* @param path The path to the file
|
||||
* @param scope An object to use as global scope while running this file
|
||||
*/
|
||||
declare function load(path: string): any;
|
||||
declare function load(path: string, scope?: object): any;
|
||||
|
||||
/**
|
||||
* @brief Return 1-byte string whose ASCII code is the integer `n`
|
||||
|
||||
Reference in New Issue
Block a user