Add typescript.
Merge pull request #11 from magicdrive/add-typescript-support

Add typescript.