yaml-types
Version:
Useful JavaScript types for YAML
15 lines (14 loc) • 638 B
TypeScript
import type { Scalar } from 'yaml';
import { StringifyContext } from 'yaml/util';
export declare const sharedSymbol: {
identify: (value: unknown) => value is never;
tag: string;
resolve: (str: string) => symbol;
stringify(item: Scalar, ctx: StringifyContext, onComment: (() => void) | undefined, onChompKeep: (() => void) | undefined): string;
};
export declare const symbol: {
identify: (value: unknown) => value is never;
tag: string;
resolve: (str: string) => symbol;
stringify(item: Scalar, ctx: StringifyContext, onComment: (() => void) | undefined, onChompKeep: (() => void) | undefined): string;
};