f3d 4.0.0 → 4.0.1-RC1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/f3d.d.ts +19 -21
- package/dist/f3d.js +1 -1
- package/dist/f3d.wasm +2 -2
- package/package.json +1 -1
package/dist/f3d.d.ts
CHANGED
|
@@ -8,11 +8,10 @@ declare namespace RuntimeExports {
|
|
|
8
8
|
export const devices: {};
|
|
9
9
|
export const streams: any[];
|
|
10
10
|
export const nextInode: number;
|
|
11
|
-
export const nameTable: any;
|
|
11
|
+
export const nameTable: any[];
|
|
12
12
|
export const currentPath: string;
|
|
13
13
|
export const initialized: boolean;
|
|
14
14
|
export const ignorePermissions: boolean;
|
|
15
|
-
export const filesystems: any;
|
|
16
15
|
export const syncFSRequests: number;
|
|
17
16
|
export { ErrnoError };
|
|
18
17
|
export { FSStream };
|
|
@@ -29,7 +28,7 @@ declare namespace RuntimeExports {
|
|
|
29
28
|
export function hashAddNode(node: any): void;
|
|
30
29
|
export function hashRemoveNode(node: any): void;
|
|
31
30
|
export function lookupNode(parent: any, name: any): any;
|
|
32
|
-
export function createNode(parent: any, name: any, mode: any, rdev
|
|
31
|
+
export function createNode(parent: any, name: any, mode: any, rdev?: any): any;
|
|
33
32
|
export function destroyNode(node: any): void;
|
|
34
33
|
export function isRoot(node: any): boolean;
|
|
35
34
|
export function isMountpoint(node: any): boolean;
|
|
@@ -86,8 +85,8 @@ declare namespace RuntimeExports {
|
|
|
86
85
|
};
|
|
87
86
|
export function create(path: any, mode?: number): any;
|
|
88
87
|
export function mkdir(path: any, mode?: number): any;
|
|
89
|
-
export function mkdirTree(path: any, mode
|
|
90
|
-
export function mkdev(path: any, mode: any, dev
|
|
88
|
+
export function mkdirTree(path: any, mode?: number): void;
|
|
89
|
+
export function mkdev(path: any, mode: any, dev?: any): any;
|
|
91
90
|
export function symlink(oldpath: any, newpath: any): any;
|
|
92
91
|
export function link(oldpath: any, newpath: any, flags: any): any;
|
|
93
92
|
export function rename(old_path: any, new_path: any): void;
|
|
@@ -95,27 +94,27 @@ declare namespace RuntimeExports {
|
|
|
95
94
|
export function readdir(path: any): any;
|
|
96
95
|
export function unlink(path: any): void;
|
|
97
96
|
export function readlink(path: any): any;
|
|
98
|
-
export function stat(path: any, dontFollow
|
|
97
|
+
export function stat(path: any, dontFollow?: boolean): any;
|
|
99
98
|
export function fstat(fd: any): any;
|
|
100
99
|
export function lstat(path: any): any;
|
|
101
|
-
export function doChmod(stream: any, node: any, mode: any, dontFollow
|
|
102
|
-
export function chmod(path: any, mode: any, dontFollow
|
|
100
|
+
export function doChmod(stream: any, node: any, mode: any, dontFollow?: boolean): void;
|
|
101
|
+
export function chmod(path: any, mode: any, dontFollow?: boolean): void;
|
|
103
102
|
export function lchmod(path: any, mode: any): void;
|
|
104
103
|
export function fchmod(fd: any, mode: any): void;
|
|
105
|
-
export function doChown(stream: any, node: any, dontFollow
|
|
106
|
-
export function chown(path: any, uid: any, gid: any, dontFollow
|
|
104
|
+
export function doChown(stream: any, node: any, dontFollow?: boolean): void;
|
|
105
|
+
export function chown(path: any, uid: any, gid: any, dontFollow?: boolean): void;
|
|
107
106
|
export function lchown(path: any, uid: any, gid: any): void;
|
|
108
107
|
export function fchown(fd: any, uid: any, gid: any): void;
|
|
109
108
|
export function doTruncate(stream: any, node: any, len: any): void;
|
|
110
109
|
export function truncate(path: any, len: any): void;
|
|
111
110
|
export function ftruncate(fd: any, len: any): void;
|
|
112
|
-
export function utime(path: any, atime: any, mtime: any, dontFollow
|
|
111
|
+
export function utime(path: any, atime: any, mtime: any, dontFollow?: boolean): void;
|
|
113
112
|
export function open(path: any, flags: any, mode?: number): any;
|
|
114
113
|
export function close(stream: any): void;
|
|
115
114
|
export function isClosed(stream: any): boolean;
|
|
116
115
|
export function llseek(stream: any, offset: any, whence: any): any;
|
|
117
|
-
export function read(stream: any, buffer: any, offset: any, length: any, position
|
|
118
|
-
export function write(stream: any, buffer: any, offset: any, length: any, position
|
|
116
|
+
export function read(stream: any, buffer: any, offset: any, length: any, position?: any): any;
|
|
117
|
+
export function write(stream: any, buffer: any, offset: any, length: any, position?: any, canOwn?: any): any;
|
|
119
118
|
export function mmap(stream: any, length: any, position: any, prot: any, flags: any): any;
|
|
120
119
|
export function msync(stream: any, buffer: any, offset: any, length: any, mmapFlags: any): any;
|
|
121
120
|
export function ioctl(stream: any, cmd: any, arg: any): any;
|
|
@@ -128,10 +127,9 @@ declare namespace RuntimeExports {
|
|
|
128
127
|
export function createSpecialDirectories(): void;
|
|
129
128
|
export function createStandardStreams(input: any, output: any, error: any): void;
|
|
130
129
|
export function staticInit(): void;
|
|
131
|
-
export function init(input
|
|
130
|
+
export function init(input?: any, output?: any, error?: any): void;
|
|
132
131
|
export function quit(): void;
|
|
133
|
-
export function
|
|
134
|
-
export function analyzePath(path: any, dontResolveLastLink: any): {
|
|
132
|
+
export function analyzePath(path: any, dontResolveLastLink?: boolean): {
|
|
135
133
|
isRoot: boolean;
|
|
136
134
|
exists: boolean;
|
|
137
135
|
error: number;
|
|
@@ -142,12 +140,12 @@ declare namespace RuntimeExports {
|
|
|
142
140
|
parentPath: any;
|
|
143
141
|
parentObject: any;
|
|
144
142
|
};
|
|
145
|
-
export function createPath(parent: any, path: any, canRead
|
|
146
|
-
export function createFile(parent: any, name: any, properties: any, canRead
|
|
147
|
-
export function createDataFile(parent: any, name: any, data
|
|
148
|
-
export function createDevice(parent: any, name: any, input
|
|
143
|
+
export function createPath(parent: any, path: any, canRead?: any, canWrite?: any): any;
|
|
144
|
+
export function createFile(parent: any, name: any, properties: any, canRead?: any, canWrite?: any): any;
|
|
145
|
+
export function createDataFile(parent: any, name: any, data?: any, canRead?: any, canWrite?: any, canOwn?: any): void;
|
|
146
|
+
export function createDevice(parent: any, name: any, input?: any, output?: any): any;
|
|
149
147
|
export function forceLoadFile(obj: any): boolean;
|
|
150
|
-
export function createLazyFile(parent: any, name: any, url: any, canRead
|
|
148
|
+
export function createLazyFile(parent: any, name: any, url: any, canRead?: any, canWrite?: any): any;
|
|
151
149
|
}
|
|
152
150
|
function FS_createPath(...args: any[]): any;
|
|
153
151
|
function FS_createDataFile(...args: any[]): any;
|