TypeScript check

Type-check a TypeScript fragment with the TypeScript compiler API.