mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2025-12-09 22:30:41 -07:00
node_modules: upgrade
This commit is contained in:
25
node_modules/yaml/dist/nodes/Node.d.ts
generated
vendored
25
node_modules/yaml/dist/nodes/Node.d.ts
generated
vendored
@@ -1,12 +1,13 @@
|
||||
import type { Document } from '../doc/Document.js';
|
||||
import type { ToJSOptions } from '../options.js';
|
||||
import { Token } from '../parse/cst.js';
|
||||
import type { StringifyContext } from '../stringify/stringify.js';
|
||||
import type { Alias } from './Alias.js';
|
||||
import { NODE_TYPE } from './identity.js';
|
||||
import type { Scalar } from './Scalar.js';
|
||||
import type { YAMLMap } from './YAMLMap.js';
|
||||
import type { YAMLSeq } from './YAMLSeq.js';
|
||||
import type { Document } from '../doc/Document';
|
||||
import type { ToJSOptions } from '../options';
|
||||
import type { Token } from '../parse/cst';
|
||||
import type { StringifyContext } from '../stringify/stringify';
|
||||
import type { Alias } from './Alias';
|
||||
import { NODE_TYPE } from './identity';
|
||||
import type { Scalar } from './Scalar';
|
||||
import type { ToJSContext } from './toJS';
|
||||
import type { MapLike, YAMLMap } from './YAMLMap';
|
||||
import type { YAMLSeq } from './YAMLSeq';
|
||||
export type Node<T = unknown> = Alias | Scalar<T> | YAMLMap<unknown, T> | YAMLSeq<T>;
|
||||
/** Utility type mapper */
|
||||
export type NodeType<T> = T extends string | number | bigint | boolean | null | undefined ? Scalar<T> : T extends Date ? Scalar<string | Date> : T extends Array<any> ? YAMLSeq<NodeType<T[number]>> : T extends {
|
||||
@@ -15,6 +16,7 @@ export type NodeType<T> = T extends string | number | bigint | boolean | null |
|
||||
[key: number]: any;
|
||||
} ? YAMLMap<NodeType<keyof T>, NodeType<T[keyof T]>> : Node;
|
||||
export type ParsedNode = Alias.Parsed | Scalar.Parsed | YAMLMap.Parsed | YAMLSeq.Parsed;
|
||||
/** `[start, value-end, node-end]` */
|
||||
export type Range = [number, number, number];
|
||||
export declare abstract class NodeBase {
|
||||
readonly [NODE_TYPE]: symbol;
|
||||
@@ -35,6 +37,11 @@ export declare abstract class NodeBase {
|
||||
srcToken?: Token;
|
||||
/** A fully qualified tag, if required */
|
||||
tag?: string;
|
||||
/**
|
||||
* Customize the way that a key-value pair is resolved.
|
||||
* Used for YAML 1.1 !!merge << handling.
|
||||
*/
|
||||
addToJSMap?: (ctx: ToJSContext | undefined, map: MapLike, value: unknown) => void;
|
||||
/** A plain JS representation of this node */
|
||||
abstract toJSON(): any;
|
||||
abstract toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
|
||||
|
||||
Reference in New Issue
Block a user