文件操作 - utils.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/openapi-typescript/dist/lib/utils.d.ts
编辑文件内容
import c from "ansi-colors"; import ts from "typescript"; import type { DiscriminatorObject, OpenAPI3, OpenAPITSOptions } from "../types.js"; export { c }; export declare function createDiscriminatorProperty(discriminator: DiscriminatorObject, { path, readonly }: { path: string; readonly?: boolean; }): ts.TypeElement; export declare function createRef(parts: (number | string | undefined | null)[]): string; export declare function debug(msg: string, group?: string, time?: number): void; export declare function error(msg: string): void; export declare function formatTime(t: number): string; export declare function getEntries<T>(obj: ArrayLike<T> | Record<string, T>, options?: { alphabetize?: boolean; excludeDeprecated?: boolean; }): [string, T][]; export declare function resolveRef<T>(schema: any, $ref: string, { silent, visited }: { silent: boolean; visited?: string[]; }): T | undefined; export declare function scanDiscriminators(schema: OpenAPI3, options: OpenAPITSOptions): { objects: Record<string, DiscriminatorObject>; refsHandled: string[]; }; export declare function walk(obj: unknown, cb: (value: Record<string, unknown>, path: (string | number)[]) => void, path?: (string | number)[]): void; export declare function warn(msg: string, silent?: boolean): void;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件