How are the definitions files loaded in typescript -
in past, d.ts files in typescript loaded when required ///<reference path="...
statement. however, it's understanding has changed , compiler able automatically load local definition files. have tried find rules googling , browsing ts specifications no success moment.
anyone kind enough explain theses rules or point me in right direction ?
these days uses tsconfig.json
, either original or atom-flavored (in atom editor).
when using tsconfig.json
, can omit files list , typescript compiler compile *.ts
files find in subdirectory, including *.d.ts
.
excluding files via exclude
on way, files globbing.
if don't want use tsconfig.json
or need files globbing right now, can achieve similar behavior using gulp
gulp-typescript
, gulp-filter
.
Comments
Post a Comment