Releases: types/_generator-typings
Releases · types/_generator-typings
Use typings 0.7
Update npm run build
to use latest typings bundle
syntax.
Added ambient module (ambient top-level namespace declaration) support.
Breaking Changes
In typings 0.7, the syntax for typings bundle
has changed. As a result, repository created by generator-typings
prior to 0.9
need to make the following adjustment in order to work with the latest typings
:
- In
package.json
, change the "build" (or "bundle" if it was generated with an older version ofgenerator-typings
) script from"typings bundle . -o bundle.d.ts"
to"typings bundle -o test"
- In
test/test.ts
, change the reference from/// <reference path="../bundle.d.ts" />
to/// <reference path="./main.d.ts" />
Feel free to open issues if you have any question.
Update tslint
Update the tslint file to fix some minor issue and disable warning about internal module for global augmentation
.
Simplify package.json
Trim down package.json. As a result, one question is eliminated!
Change bundle to build
For build
is better in this context.
Add tsd hint
Add hint on using tsd to download existing typed files from DefinitelyTyped.