Skip to content

checkProjectTypes

Type-checks a set of files with skipLibCheck: false, but reports only the diagnostics whose source file passes shouldKeepFile. Diagnostics from files we do not control (e.g. broken third-party .d.ts pulled in transitively) are dropped, while still being counted for visibility. When isVerbose is set, the dropped diagnostics are also printed in full.

Import:

import { checkProjectTypes } from '@mnaoumov/typescript-dev-toolkit/check-project-types';

Signature:

function checkProjectTypes(params: CheckProjectTypesParams): boolean

Parameters:

Parameter Type Description
params CheckProjectTypesParams The program inputs and the keep predicate.

Returns: boolean — true when no reported diagnostic is an error, false otherwise.


Links to this page: