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 'obsidian-dev-utils/script-utils/validate-declarations';

Signature:

function validateDeclarations(options: ValidateDeclarationsOptions): boolean

Parameters:

ParameterTypeDescription
optionsValidateDeclarationsOptionsThe options controlling validation output.

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


Links to this page: