【发布时间】:2016-11-13 23:22:44
【问题描述】:
我正在尝试为 Readable Stream 创建一个方法,但在尝试了一点点之后,我就没有办法了。
import * as stream from 'stream'
//yields Property 'asdasas' does not exists on type 'Readable'
stream.Readable.prototype.asdasas
//yields asdas does not exists on type 'typeof Readable'
stream.Readable.asdas
谁能给我一个解决方案并解释为什么会发生错误?谢谢
【问题讨论】:
标签: node.js typescript stream