UNPKG

@accordproject/concerto-linter-default-ruleset

Version:

Default ruleset for the Accord Project Concerto Linter

10 lines (9 loc) 454 B
import type { IFunction } from '@stoplight/spectral-core'; /** * Checks if a String object has a length validator. * * @param {unknown} targetVal The AST node to check, expected to be a StringProperty or StringScalar object. * @returns {IFunctionResult[] | void} An array of results indicating declarations that lack a length validator. * @throws {Error} If the input is not a valid object. */ export declare const checkLengthValidator: IFunction;