Docs
Reference
Guides
Blog
Discord
/
node:stream
/
default
/
DuplexOptions
/
destroy
M
destroy
Search the reference...
/
Docs
Reference
Guides
Blog
Discord
/
node:stream
/
default
/
DuplexOptions
/
destroy
M
destroy
method
stream.default.DuplexOptions.destroy
destroy
(
this
:
T
,
error
:
null
|
Error
,
callback
:
(
error
?
:
null
|
Error
)
=>
void
)
:
void
;
Referenced types
interface
Error
cause
?
:
unknown
The cause of the error.
message
:
string
name
:
string
stack
?
:
string