Converts json files to TypeScript interfaces
MIT License
Converts json files to TypeScript interfaces.
This plugin is usefull when you have a config.json
file and want to use it within your TypeScript code.
$ npm install --save-dev gulp-json2dts
const gulp = require('gulp');
const json2dts = require('gulp-json2dts');
gulp.task('default', () => {
gulp.src('src/file.json')
.pipe(json2dts())
.pipe(gulp.dest('dist'))
);
Contributions would be very nice :)