Skip to content

validateDeclarations

Validates the generated declaration files against the tsconfig.validate-declarations*.json configs, reporting every diagnostic that concerns the library’s own declarations and ignoring only those whose source file lives in node_modules.

Import:

import { validateDeclarations } from '@mnaoumov/typescript-dev-toolkit/validate-declarations';

Signature:

function validateDeclarations(options: ValidateDeclarationsOptions): boolean

Parameters:

Parameter Type Description
options ValidateDeclarationsOptions The options controlling validation output.

Returns: boolean — true when the library’s own declarations have no type errors, false otherwise.


Links to this page: