Update according to TS 0.9

There is no declare inside module
Merge pull request #753 from NN---/patch-4

Update according to TS 0.9