UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/redocly-cli

11 lines (10 loc) 602 B
import type { Arazzo1RuleSet, Async2RuleSet, Async3RuleSet, Oas2RuleSet, Oas3RuleSet, Overlay1RuleSet, SpecVersion } from '../oas-types'; import type { StyleguideConfig } from './config'; import type { ProblemSeverity } from '../walk'; type InitializedRule = { severity: ProblemSeverity; ruleId: string; visitor: any; }; export declare function initRules(rules: (Oas3RuleSet | Oas2RuleSet | Async2RuleSet | Async3RuleSet | Arazzo1RuleSet | Overlay1RuleSet)[], config: StyleguideConfig, type: 'rules' | 'preprocessors' | 'decorators', oasVersion: SpecVersion): InitializedRule[]; export {};