@jacobbubu/pull-stream-types
Yet another pull-stream typescript declaration file.
Intro.
Although Michael de Wit has provided a typescript declaration file for pull-stream, in order to facilitate some type-wise modifications, I still extract the original one out and use it independently.
Usage
npm install pull-stream -S
npm install @jacobbubu/pull-stream-types -D
Then add a module definition into your compilerOptions
in tsconfig.json
. That may look like:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"pull-stream": ["node_modules/@jacobbubu/pull-stream-types"]
}
}
}
It works for tsc
, ts-node
and ts-node-dev
.
Test
A test file(test/pull-stream-test.ts
) has been provided to verify the correctness of the declaration file.
You can npm run build:watch
for debugging.