Copyright by https://github.com/TypeStrong/tsify, MIT License