typecheck

Run TypeScript type checking on this code file.

const typeErrors = await codeFile.typecheck({
	strict: true
})

Parameters

  • compilerOptions: ts.server.protocol.CompilerOptions (optional) – Optional TypeScript compiler options. See the TypeScript CompilerOptions reference for all available options.

Returns