Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4498004
stream.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
stream.d.ts
View Options
declare
module
'stream'
{
class
Stream
{
pipe
<
T
extends
Writable
>
(
destination
:
T
,
options
?:
{
end?
:
boolean
})
:
T
;
unpipe
(
destination?
:
Writable
)
:
this
;
pause
()
:
this
;
resume
()
:
this
;
isPaused
()
:
boolean
;
destroy
(
error?
:
Error
)
:
this
;
on
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
this
;
once
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
this
;
off
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
this
;
removeListener
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
this
;
removeAllListeners
(
event?
:
string
)
:
this
;
}
class
Readable
extends
Stream
{
constructor
(
options?
:
Record
<
string
,
unknown
>
);
_read
(
size?
:
number
)
:
void
;
read
(
size?
:
number
)
:
Uint8Array
|
string
|
null
;
push
(
chunk
:
Uint8Array
|
string
|
null
)
:
boolean
;
on
(
event
:
'data'
,
listener
:
(
chunk
:
Uint8Array
|
string
)
=>
void
)
:
this
;
on
(
event
:
'end'
|
'close'
|
'readable'
,
listener
:
()
=>
void
)
:
this
;
on
(
event
:
'error'
,
listener
:
(
error
:
Error
)
=>
void
)
:
this
;
on
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
this
;
static
from
(
source
:
unknown
,
options?
:
Record
<
string
,
unknown
>
)
:
Readable
;
static
fromWeb
(
source
:
unknown
,
options?
:
Record
<
string
,
unknown
>
)
:
Readable
;
}
class
Writable
extends
Stream
{
constructor
(
options?
:
Record
<
string
,
unknown
>
);
_write
(
chunk
:
Uint8Array
|
string
,
encoding
:
string
,
callback
:
(
error?
:
Error
|
null
)
=>
void
)
:
void
;
write
(
chunk
:
Uint8Array
|
string
,
encoding?
:
string
,
callback
?:
(
error?
:
Error
|
null
)
=>
void
)
:
boolean
;
end
(
chunk?
:
Uint8Array
|
string
,
encoding?
:
string
,
callback
?:
(
error?
:
Error
|
null
)
=>
void
)
:
this
;
cork
()
:
void
;
uncork
()
:
void
;
on
(
event
:
'drain'
|
'finish'
|
'close'
,
listener
:
()
=>
void
)
:
this
;
on
(
event
:
'error'
,
listener
:
(
error
:
Error
)
=>
void
)
:
this
;
on
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
this
;
}
class
Duplex
extends
Readable
{
constructor
(
options?
:
Record
<
string
,
unknown
>
);
write
(
chunk
:
Uint8Array
|
string
,
encoding?
:
string
,
callback
?:
(
error?
:
Error
|
null
)
=>
void
)
:
boolean
;
end
(
chunk?
:
Uint8Array
|
string
,
encoding?
:
string
,
callback
?:
(
error?
:
Error
|
null
)
=>
void
)
:
this
;
cork
()
:
void
;
uncork
()
:
void
;
}
class
Transform
extends
Duplex
{
constructor
(
options?
:
Record
<
string
,
unknown
>
);
}
class
PassThrough
extends
Transform
{
constructor
(
options?
:
Record
<
string
,
unknown
>
);
}
function
pipeline
(
...streams
:
Array
<
Stream
|
((
error?
:
Error
|
null
)
=>
void
)
>
)
:
Stream
;
function
finished
(
stream
:
Stream
,
callback
?:
(
error?
:
Error
|
null
)
=>
void
)
:
Stream
;
const
promises
:
{
pipeline
(
...streams
:
Stream
[])
:
Promise
<
void
>
;
finished
(
stream
:
Stream
)
:
Promise
<
void
>
;
};
export
default
Stream
;
export
{
Stream
,
Readable
,
Writable
,
Duplex
,
Transform
,
PassThrough
,
pipeline
,
finished
,
promises
};
}
declare
module
'ant:stream'
{
export
*
from
'stream'
;
export
{
default
}
from
'stream'
;
}
declare
module
'node:stream'
{
export
*
from
'stream'
;
export
{
default
}
from
'stream'
;
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, May 3, 7:28 AM (11 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
541913
Default Alt Text
stream.d.ts (3 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment