@redocly/openapi-core
Version:
See https://github.com/Redocly/openapi-cli
8 lines (7 loc) • 361 B
TypeScript
import { RuleSet, OasVersion } from '../oas-types';
import { LintConfig } from './config';
export declare function initRules<T extends Function, P extends RuleSet<T>>(rules: P[], config: LintConfig, type: 'rules' | 'preprocessors' | 'decorators', oasVersion: OasVersion): {
severity: import("..").ProblemSeverity;
ruleId: string;
visitor: any;
}[];