The type definition for vinyl
typings install --save vinyl
import File from 'vinyl';
const tsFile = new File({
cwd: '/',
base: '/test/',
path: '/test/file.ts',
contents: new Buffer('test = 123')
});
MIT
# Fork this repo, then
npm install
npm run watch
# add tests, make changes, pass tests ... then [ctrl+c]
npm run publish
Update typings.json/version
to match the source version you are typing against.
e.g. if you are creating typings for chai@3.5.0
, then:
// typings.json
{
"version": "3.5.0"
// ...
}
Based on typings by vvakame and jedmao
Generated by generator-typings
1.0.13