Skip to content

Commit c9ed8d7

Browse files
committed
😱
1 parent 5d705b6 commit c9ed8d7

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

‎cli/js/lib.deno.ns.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ declare namespace Deno {
245245
export function chdir(directory: string): void;
246246

247247
/** UNSTABLE: might move to Deno.symbols */
248-
export const EOF: symbol;
248+
export const EOF: unique symbol;
249249

250250
/** UNSTABLE: might move to Deno.symbols */
251251
export type EOF = typeof EOF;

‎cli/js/lib.deno.shared_globals.d.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-interface, @typescript-eslint/no-explicit-any */
44

55
/// <reference no-default-lib="true" />
6+
/// <reference lib="deno.ns" />
67
/// <reference lib="esnext" />
78

89
// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope
@@ -961,12 +962,6 @@ declare namespace __eventTarget {
961962
}
962963

963964
declare namespace __io {
964-
/** UNSTABLE: might move to Deno.symbols */
965-
export const EOF: symbol;
966-
967-
/** UNSTABLE: might move to Deno.symbols */
968-
export type EOF = typeof EOF;
969-
970965
/** UNSTABLE: maybe remove "SEEK_" prefix. Maybe capitalization wrong. */
971966
export enum SeekMode {
972967
SEEK_START = 0,
@@ -991,10 +986,10 @@ declare namespace __io {
991986
*
992987
* Implementations must not retain `p`.
993988
*/
994-
read(p: Uint8Array): Promise<number | EOF>;
989+
read(p: Uint8Array): Promise<number | Deno.EOF>;
995990
}
996991
export interface SyncReader {
997-
readSync(p: Uint8Array): number | EOF;
992+
readSync(p: Uint8Array): number | Deno.EOF;
998993
}
999994
export interface Writer {
1000995
/** Writes `p.byteLength` bytes from `p` to the underlying data
@@ -1077,7 +1072,7 @@ declare namespace __fetch {
10771072
formData(): Promise<__domTypes.FormData>;
10781073
json(): Promise<any>;
10791074
text(): Promise<string>;
1080-
read(p: Uint8Array): Promise<number | __io.EOF>;
1075+
read(p: Uint8Array): Promise<number | Deno.EOF>;
10811076
close(): void;
10821077
cancel(): Promise<void>;
10831078
getReader(): __domTypes.ReadableStreamReader;

0 commit comments

Comments
 (0)