Would you consider adding support for Typescript specific syntax like type declarations?
@pontusk Please check out this PR and let me know if this should suffice for your needs.