Add js sdk changes

With type declarations and various missing parts added by Willy-JL
This commit is contained in:
MX
2024-11-05 09:49:46 +03:00
parent 8a2cf4dc3d
commit 79caf7bf72
19 changed files with 378 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
/**
* Module for USB mass storage emulation
* @version Available with JS feature `usbdisk`
* @module
*/
/**
* @brief Start emulating mass storage device
* @param path The disk image to emulate
*/
export declare function start(path: string): void;
/**
* @brief Stop emulating mass storage device
*/
export declare function stop(): void;
/**
* @brief Check if the mass storage device was exected
*
* Useful as a loop condition with a delay, so UsbDisk keeps running until ejected
*
*/
export declare function wasEjected(): boolean;