文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.d.ts
编辑文件内容
import type { asserts, AssertionFn } from './asserts'; import type { Arazzo1Visitor, Async2Visitor, Async3Visitor, Oas2Visitor, Oas3Visitor } from '../../../visitors'; import type { RuleSeverity } from '../../../config'; export type AssertionLocators = { filterInParentKeys?: (string | number)[]; filterOutParentKeys?: (string | number)[]; matchParentKeys?: string; }; export type AssertionDefinition = { subject: { type: string; property?: string | string[]; } & AssertionLocators; assertions: { [name in keyof typeof asserts]?: AssertionFn; }; }; export type RawAssertion = AssertionDefinition & { where?: AssertionDefinition[]; message?: string; suggest?: string[]; severity?: RuleSeverity; }; export type Assertion = RawAssertion & { assertionId: string; }; export declare const Assertions: (opts: Record<string, Assertion>) => (Oas3Visitor | Oas2Visitor | Async2Visitor | Async3Visitor | Arazzo1Visitor)[];
修改文件时间
将文件时间修改为当前时间的前一年
删除文件