mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Updates emscripten types (#41966)
Adds `canOwn` parameter to createDataFile File System method
This commit is contained in:
@@ -106,7 +106,7 @@ function FSTest(): void {
|
||||
FS.write(wstream, data, 0, data.length, 0);
|
||||
FS.close(wstream);
|
||||
|
||||
FS.createDataFile('/', 'dummy2', data, true, true);
|
||||
FS.createDataFile('/', 'dummy2', data, true, true, true);
|
||||
|
||||
const lookup = FS.lookupPath("path", { parent: true });
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -217,7 +217,7 @@ declare namespace FS {
|
||||
function createLazyFile(parent: string | FSNode, name: string, url: string, canRead: boolean, canWrite: boolean): FSNode;
|
||||
function createPreloadedFile(parent: string | FSNode, name: string, url: string,
|
||||
canRead: boolean, canWrite: boolean, onload?: () => void, onerror?: () => void, dontCreateFile?: boolean, canOwn?: boolean): void;
|
||||
function createDataFile(parent: string | FSNode, name: string, data: ArrayBufferView, canRead: boolean, canWrite: boolean): FSNode;
|
||||
function createDataFile(parent: string | FSNode, name: string, data: ArrayBufferView, canRead: boolean, canWrite: boolean, canOwn: boolean): FSNode;
|
||||
}
|
||||
|
||||
interface Math {
|
||||
|
||||
Reference in New Issue
Block a user