summaryrefslogtreecommitdiff
path: root/node_modules/yaml/dist/nodes/identity.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/yaml/dist/nodes/identity.d.ts')
-rw-r--r--node_modules/yaml/dist/nodes/identity.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/node_modules/yaml/dist/nodes/identity.d.ts b/node_modules/yaml/dist/nodes/identity.d.ts
new file mode 100644
index 0000000..c12fdf7
--- /dev/null
+++ b/node_modules/yaml/dist/nodes/identity.d.ts
@@ -0,0 +1,23 @@
+import type { Document } from '../doc/Document.js';
+import type { Alias } from './Alias.js';
+import type { Node } from './Node.js';
+import type { Pair } from './Pair.js';
+import type { Scalar } from './Scalar.js';
+import type { YAMLMap } from './YAMLMap.js';
+import type { YAMLSeq } from './YAMLSeq.js';
+export declare const ALIAS: unique symbol;
+export declare const DOC: unique symbol;
+export declare const MAP: unique symbol;
+export declare const PAIR: unique symbol;
+export declare const SCALAR: unique symbol;
+export declare const SEQ: unique symbol;
+export declare const NODE_TYPE: unique symbol;
+export declare const isAlias: (node: any) => node is Alias;
+export declare const isDocument: <T extends Node = Node>(node: any) => node is Document<T, true>;
+export declare const isMap: <K = unknown, V = unknown>(node: any) => node is YAMLMap<K, V>;
+export declare const isPair: <K = unknown, V = unknown>(node: any) => node is Pair<K, V>;
+export declare const isScalar: <T = unknown>(node: any) => node is Scalar<T>;
+export declare const isSeq: <T = unknown>(node: any) => node is YAMLSeq<T>;
+export declare function isCollection<K = unknown, V = unknown>(node: any): node is YAMLMap<K, V> | YAMLSeq<V>;
+export declare function isNode<T = unknown>(node: any): node is Node<T>;
+export declare const hasAnchor: <K = unknown, V = unknown>(node: unknown) => node is Scalar<V> | YAMLMap<K, V> | YAMLSeq<V>;