@bytecodealliance/jco 1.13.2 → 1.14.0

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.
@@ -1,9 +1,8 @@
1
1
  /** @module Interface wasi:cli/terminal-input@0.2.3 **/
2
2
 
3
- export class TerminalInput implements Partial<Disposable> {
3
+ export class TerminalInput {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
- [Symbol.dispose]?: () => void;
9
8
  }
@@ -1,9 +1,8 @@
1
1
  /** @module Interface wasi:cli/terminal-output@0.2.3 **/
2
2
 
3
- export class TerminalOutput implements Partial<Disposable> {
3
+ export class TerminalOutput {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
- [Symbol.dispose]?: () => void;
9
8
  }
@@ -138,7 +138,7 @@ export interface DirectoryEntry {
138
138
  name: string,
139
139
  }
140
140
 
141
- export class Descriptor implements Partial<Disposable> {
141
+ export class Descriptor {
142
142
  /**
143
143
  * This type does not have a public constructor.
144
144
  */
@@ -153,14 +153,12 @@ export class Descriptor implements Partial<Disposable> {
153
153
  openAt(pathFlags: PathFlags, path: string, openFlags: OpenFlags, flags: DescriptorFlags): Descriptor;
154
154
  metadataHash(): MetadataHashValue;
155
155
  metadataHashAt(pathFlags: PathFlags, path: string): MetadataHashValue;
156
- [Symbol.dispose]?: () => void;
157
156
  }
158
157
 
159
- export class DirectoryEntryStream implements Partial<Disposable> {
158
+ export class DirectoryEntryStream {
160
159
  /**
161
160
  * This type does not have a public constructor.
162
161
  */
163
162
  private constructor();
164
163
  readDirectoryEntry(): DirectoryEntry | undefined;
165
- [Symbol.dispose]?: () => void;
166
164
  }
@@ -1,9 +1,8 @@
1
1
  /** @module Interface wasi:io/error@0.2.3 **/
2
2
 
3
- export class Error implements Partial<Disposable> {
3
+ export class Error {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
- [Symbol.dispose]?: () => void;
9
8
  }
@@ -9,17 +9,16 @@ export interface StreamErrorClosed {
9
9
  tag: 'closed',
10
10
  }
11
11
 
12
- export class InputStream implements Partial<Disposable> {
12
+ export class InputStream {
13
13
  /**
14
14
  * This type does not have a public constructor.
15
15
  */
16
16
  private constructor();
17
17
  read(len: bigint): Uint8Array;
18
18
  blockingRead(len: bigint): Uint8Array;
19
- [Symbol.dispose]?: () => void;
20
19
  }
21
20
 
22
- export class OutputStream implements Partial<Disposable> {
21
+ export class OutputStream {
23
22
  /**
24
23
  * This type does not have a public constructor.
25
24
  */
@@ -28,5 +27,4 @@ export class OutputStream implements Partial<Disposable> {
28
27
  write(contents: Uint8Array): void;
29
28
  blockingWriteAndFlush(contents: Uint8Array): void;
30
29
  blockingFlush(): void;
31
- [Symbol.dispose]?: () => void;
32
30
  }