@@ -199,7 +199,7 @@ declare module 'buffer' {
199199 declare var kMaxLength : number ;
200200 declare var INSPECT_MAX_BYTES : number ;
201201
202- declare var constants : $ReadOnly < {
202+ declare var constants : Readonly < {
203203 MAX_LENGTH : number ,
204204 MAX_STRING_LENGTH : number ,
205205 } > ;
@@ -1467,7 +1467,7 @@ declare module 'fs' {
14671467 path : string ,
14681468 options :
14691469 | string
1470- | $ReadOnly < {
1470+ | Readonly < {
14711471 encoding ?: string ,
14721472 recursive ?: boolean ,
14731473 withFileTypes ?: false ,
@@ -1477,7 +1477,7 @@ declare module 'fs' {
14771477 ) : void ;
14781478 declare function readdir (
14791479 path : string ,
1480- options : $ReadOnly < {
1480+ options : Readonly < {
14811481 encoding ?: string ,
14821482 recursive ?: boolean ,
14831483 withFileTypes : true ,
@@ -1493,7 +1493,7 @@ declare module 'fs' {
14931493 path : string ,
14941494 options ?:
14951495 | string
1496- | $ReadOnly < {
1496+ | Readonly < {
14971497 encoding ?: string ,
14981498 recursive ?: boolean ,
14991499 withFileTypes ?: false ,
@@ -1503,7 +1503,7 @@ declare module 'fs' {
15031503 path : string ,
15041504 options ?:
15051505 | string
1506- | $ReadOnly < {
1506+ | Readonly < {
15071507 encoding ?: string ,
15081508 recursive ?: boolean ,
15091509 withFileTypes : true ,
@@ -1527,13 +1527,13 @@ declare module 'fs' {
15271527 ) : void ;
15281528 declare function openAsBlob (
15291529 path : string | Buffer | URL ,
1530- options ?: $ReadOnly < {
1530+ options ?: Readonly < {
15311531 type ?: string , // Optional MIME type hint
15321532 } > ,
15331533 ) : Promise < Blob > ;
15341534 declare function opendir(
15351535 path: string,
1536- options?: $ReadOnly < {
1536+ options?: Readonly < {
15371537 encoding ? : string ,
15381538 bufferSize ? : number ,
15391539 recursive ? : boolean ,
@@ -1542,7 +1542,7 @@ declare module 'fs' {
15421542 ) : void ;
15431543 declare function opendirSync (
15441544 path : string ,
1545- options ?: $ReadOnly < {
1545+ options ?: Readonly < {
15461546 encoding ?: string ,
15471547 bufferSize ?: number ,
15481548 recursive ?: boolean ,
@@ -1770,7 +1770,7 @@ declare module 'fs' {
17701770 ) : void ;
17711771 declare function watchFile (
17721772 filename : string ,
1773- options ?: $ReadOnly < {
1773+ options ?: Readonly < {
17741774 bigint ?: boolean ,
17751775 persistent ?: boolean ,
17761776 interval ?: number ,
@@ -1787,7 +1787,7 @@ declare module 'fs' {
17871787 ) : FSWatcher ;
17881788 declare function watch (
17891789 filename : string ,
1790- options ?: $ReadOnly < {
1790+ options ?: Readonly < {
17911791 persistent ?: boolean ,
17921792 recursive ?: boolean ,
17931793 encoding ?: string ,
@@ -1835,7 +1835,7 @@ declare module 'fs' {
18351835 declare function cp (
18361836 src : string | URL ,
18371837 dest : string | URL ,
1838- options : $ReadOnly < {
1838+ options : Readonly < {
18391839 dereference ?: boolean ,
18401840 errorOnExist ?: boolean ,
18411841 filter ?: ( src : string , dest : string ) => boolean | Promise < boolean > ,
@@ -1855,7 +1855,7 @@ declare module 'fs' {
18551855 declare function cpSync (
18561856 src : string | URL ,
18571857 dest : string | URL ,
1858- options ?: $ReadOnly < {
1858+ options ?: Readonly < {
18591859 dereference ?: boolean ,
18601860 errorOnExist ?: boolean ,
18611861 filter ?: ( src : string , dest : string ) => boolean ,
@@ -2022,7 +2022,7 @@ declare module 'fs' {
20222022 chown(uid: number, guid: number): Promise< void > ;
20232023 close(): Promise< void > ;
20242024 createReadStream(
2025- options?: $ReadOnly < {
2025+ options?: Readonly < {
20262026 encoding ? : string ,
20272027 autoClose ? : boolean ,
20282028 emitClose ? : boolean ,
@@ -2033,7 +2033,7 @@ declare module 'fs' {
20332033 } > ,
20342034 ) : ReadStream ;
20352035 createWriteStream (
2036- options ?: $ReadOnly < {
2036+ options ?: Readonly < {
20372037 encoding ?: string ,
20382038 autoClose ?: boolean ,
20392039 emitClose ?: boolean ,
@@ -2055,12 +2055,12 @@ declare module 'fs' {
20552055 ...
20562056 } > ;
20572057 readableWebStream(
2058- options?: $ReadOnly < { autoClose ? : boolean } > ,
2058+ options?: Readonly < { autoClose ? : boolean } > ,
20592059 ) : ReadableStream ;
20602060 readFile ( options : EncodingFlag ) : Promise < Buffer > ;
20612061 readFile(options: string): Promise< string > ;
20622062 readLines(
2063- options?: $ReadOnly < {
2063+ options?: Readonly < {
20642064 encoding ? : string ,
20652065 autoClose ? : boolean ,
20662066 emitClose ? : boolean ,
@@ -2088,7 +2088,7 @@ declare module 'fs' {
20882088 ): Promise< void > ;
20892089 write(
20902090 buffer: Buffer | Uint8Array | DataView,
2091- options?: $ReadOnly < {
2091+ options?: Readonly < {
20922092 offset ? : number ,
20932093 length ? : number ,
20942094 position ? : number ,
@@ -2119,7 +2119,7 @@ declare module 'fs' {
21192119 cp (
21202120 src : string | URL ,
21212121 dest : string | URL ,
2122- options ?: $ReadOnly < {
2122+ options ?: Readonly < {
21232123 dereference ?: boolean ,
21242124 errorOnExist ?: boolean ,
21252125 filter ?: ( src : string , dest : string ) => boolean | Promise < boolean > ,
@@ -2171,7 +2171,7 @@ declare module 'fs' {
21712171 ) : Promise < FileHandle > ,
21722172 opendir (
21732173 path : string ,
2174- options ?: $ReadOnly < {
2174+ options ?: Readonly < {
21752175 encoding ?: string ,
21762176 bufferSize ?: number ,
21772177 recursive ?: boolean ,
@@ -2192,15 +2192,15 @@ declare module 'fs' {
21922192 path : FSPromisePath ,
21932193 options :
21942194 | string
2195- | $ReadOnly < {
2195+ | Readonly < {
21962196 encoding ?: string ,
21972197 recursive ?: boolean ,
21982198 withFileTypes ?: false ,
21992199 } > ,
22002200 ) => Promise < Array < string >> ) &
22012201 ( (
22022202 path : FSPromisePath ,
2203- options : $ReadOnly < {
2203+ options : Readonly < {
22042204 encoding ?: string ,
22052205 recursive ?: boolean ,
22062206 withFileTypes : true ,
@@ -2249,7 +2249,7 @@ declare module 'fs' {
22492249 ): Promise< void > ,
22502250 watch(
22512251 filename: FSPromisePath,
2252- options?: $ReadOnly < {
2252+ options?: Readonly < {
22532253 persistent ? : boolean ,
22542254 recursive ? : boolean ,
22552255 encoding ? : string ,
0 commit comments