3
3
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-interface, @typescript-eslint/no-explicit-any */
4
4
5
5
/// <reference no-default-lib="true" />
6
+ /// <reference lib="deno.ns" />
6
7
/// <reference lib="esnext" />
7
8
8
9
// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope
@@ -961,12 +962,6 @@ declare namespace __eventTarget {
961
962
}
962
963
963
964
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
-
970
965
/** UNSTABLE: maybe remove "SEEK_" prefix. Maybe capitalization wrong. */
971
966
export enum SeekMode {
972
967
SEEK_START = 0 ,
@@ -991,10 +986,10 @@ declare namespace __io {
991
986
*
992
987
* Implementations must not retain `p`.
993
988
*/
994
- read ( p : Uint8Array ) : Promise < number | EOF > ;
989
+ read ( p : Uint8Array ) : Promise < number | Deno . EOF > ;
995
990
}
996
991
export interface SyncReader {
997
- readSync ( p : Uint8Array ) : number | EOF ;
992
+ readSync ( p : Uint8Array ) : number | Deno . EOF ;
998
993
}
999
994
export interface Writer {
1000
995
/** Writes `p.byteLength` bytes from `p` to the underlying data
@@ -1077,7 +1072,7 @@ declare namespace __fetch {
1077
1072
formData ( ) : Promise < __domTypes . FormData > ;
1078
1073
json ( ) : Promise < any > ;
1079
1074
text ( ) : Promise < string > ;
1080
- read ( p : Uint8Array ) : Promise < number | __io . EOF > ;
1075
+ read ( p : Uint8Array ) : Promise < number | Deno . EOF > ;
1081
1076
close ( ) : void ;
1082
1077
cancel ( ) : Promise < void > ;
1083
1078
getReader ( ) : __domTypes . ReadableStreamReader ;
0 commit comments