文件操作 - stringify.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/yaml/dist/stringify/stringify.d.ts
编辑文件内容
import type { Document } from '../doc/Document'; import type { Alias } from '../nodes/Alias'; import type { ToStringOptions } from '../options'; export type StringifyContext = { actualString?: boolean; allNullValues?: boolean; anchors: Set<string>; doc: Document; forceBlockIndent?: boolean; implicitKey?: boolean; indent: string; indentStep: string; indentAtStart?: number; inFlow: boolean | null; inStringifyKey?: boolean; flowCollectionPadding: string; options: Readonly<Required<Omit<ToStringOptions, 'collectionStyle' | 'indent'>>>; resolvedAliases?: Set<Alias>; }; export declare function createStringifyContext(doc: Document, options: ToStringOptions): StringifyContext; export declare function stringify(item: unknown, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件