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 'obsidian-dev-utils/script-utils/check-project-types';

Signature:

function checkProjectTypes(params: CheckProjectTypesParams): boolean

Parameters:

ParameterTypeDescription
paramsCheckProjectTypesParamsThe program inputs and the keep predicate.

Returns: booleantrue when no reported diagnostic is an error, false otherwise.


Links to this page: