@jacobbubu/pull-stream-types
v1.1.0
Published
[![Build Status](https://travis-ci.org/jacobbubu/pull-stream-types.svg)](https://travis-ci.org/jacobbubu/pull-stream-types) [![npm](https://img.shields.io/npm/v/@jacobbubu/pull-stream-types.svg)](https://www.npmjs.com/package/@jacobbubu/pull-stream-types/
Downloads
498
Readme
@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.