Skip to content

Commit

Permalink
😱
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Feb 14, 2020
1 parent 5d705b6 commit c9ed8d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cli/js/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ declare namespace Deno {
export function chdir(directory: string): void;

/** UNSTABLE: might move to Deno.symbols */
export const EOF: symbol;
export const EOF: unique symbol;

/** UNSTABLE: might move to Deno.symbols */
export type EOF = typeof EOF;
Expand Down
13 changes: 4 additions & 9 deletions cli/js/lib.deno.shared_globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-interface, @typescript-eslint/no-explicit-any */

/// <reference no-default-lib="true" />
/// <reference lib="deno.ns" />
/// <reference lib="esnext" />

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

declare namespace __io {
/** UNSTABLE: might move to Deno.symbols */
export const EOF: symbol;

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

/** UNSTABLE: maybe remove "SEEK_" prefix. Maybe capitalization wrong. */
export enum SeekMode {
SEEK_START = 0,
Expand All @@ -991,10 +986,10 @@ declare namespace __io {
*
* Implementations must not retain `p`.
*/
read(p: Uint8Array): Promise<number | EOF>;
read(p: Uint8Array): Promise<number | Deno.EOF>;
}
export interface SyncReader {
readSync(p: Uint8Array): number | EOF;
readSync(p: Uint8Array): number | Deno.EOF;
}
export interface Writer {
/** Writes `p.byteLength` bytes from `p` to the underlying data
Expand Down Expand Up @@ -1077,7 +1072,7 @@ declare namespace __fetch {
formData(): Promise<__domTypes.FormData>;
json(): Promise<any>;
text(): Promise<string>;
read(p: Uint8Array): Promise<number | __io.EOF>;
read(p: Uint8Array): Promise<number | Deno.EOF>;
close(): void;
cancel(): Promise<void>;
getReader(): __domTypes.ReadableStreamReader;
Expand Down

0 comments on commit c9ed8d7

Please sign in to comment.