Search
Search
typecheck
typecheck
Run TypeScript type checking on the code file.
const typeErrors = await codeFile.typecheck({ strict: true })
Parameters
compilerOptions?: ts.server.protocol.CompilerOptions
— Optional TypeScript compiler options. See the TypeScript CompilerOptions reference for all available options.
Returns
Promise<TypecheckDiagnostic[]>
— An array of TypecheckDiagnostic