From b22f6770c8bd084d66950655203c61dd701b3d90 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 4 Jun 2022 08:51:19 +0200 Subject: Remove node_modules --- node_modules/yaml/dist/visit.d.ts | 102 -------------------------------------- 1 file changed, 102 deletions(-) delete mode 100644 node_modules/yaml/dist/visit.d.ts (limited to 'node_modules/yaml/dist/visit.d.ts') diff --git a/node_modules/yaml/dist/visit.d.ts b/node_modules/yaml/dist/visit.d.ts deleted file mode 100644 index 7926c00..0000000 --- a/node_modules/yaml/dist/visit.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -import type { Document } from './doc/Document.js'; -import type { Alias } from './nodes/Alias.js'; -import { Node } from './nodes/Node.js'; -import type { Pair } from './nodes/Pair.js'; -import type { Scalar } from './nodes/Scalar.js'; -import type { YAMLMap } from './nodes/YAMLMap.js'; -import type { YAMLSeq } from './nodes/YAMLSeq.js'; -export declare type visitorFn = (key: number | 'key' | 'value' | null, node: T, path: readonly (Document | Node | Pair)[]) => void | symbol | number | Node | Pair; -export declare type visitor = visitorFn | { - Alias?: visitorFn; - Collection?: visitorFn; - Map?: visitorFn; - Node?: visitorFn; - Pair?: visitorFn; - Scalar?: visitorFn; - Seq?: visitorFn; - Value?: visitorFn; -}; -export declare type asyncVisitorFn = (key: number | 'key' | 'value' | null, node: T, path: readonly (Document | Node | Pair)[]) => void | symbol | number | Node | Pair | Promise; -export declare type asyncVisitor = asyncVisitorFn | { - Alias?: asyncVisitorFn; - Collection?: asyncVisitorFn; - Map?: asyncVisitorFn; - Node?: asyncVisitorFn; - Pair?: asyncVisitorFn; - Scalar?: asyncVisitorFn; - Seq?: asyncVisitorFn; - Value?: asyncVisitorFn; -}; -/** - * Apply a visitor to an AST node or document. - * - * Walks through the tree (depth-first) starting from `node`, calling a - * `visitor` function with three arguments: - * - `key`: For sequence values and map `Pair`, the node's index in the - * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. - * `null` for the root node. - * - `node`: The current node. - * - `path`: The ancestry of the current node. - * - * The return value of the visitor may be used to control the traversal: - * - `undefined` (default): Do nothing and continue - * - `visit.SKIP`: Do not visit the children of this node, continue with next - * sibling - * - `visit.BREAK`: Terminate traversal completely - * - `visit.REMOVE`: Remove the current node, then continue with the next one - * - `Node`: Replace the current node, then continue by visiting it - * - `number`: While iterating the items of a sequence or map, set the index - * of the next step. This is useful especially if the index of the current - * node has changed. - * - * If `visitor` is a single function, it will be called with all values - * encountered in the tree, including e.g. `null` values. Alternatively, - * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, - * `Alias` and `Scalar` node. To define the same visitor function for more than - * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) - * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most - * specific defined one will be used for each node. - */ -export declare function visit(node: Node | Document | null, visitor: visitor): void; -export declare namespace visit { - var BREAK: symbol; - var SKIP: symbol; - var REMOVE: symbol; -} -/** - * Apply an async visitor to an AST node or document. - * - * Walks through the tree (depth-first) starting from `node`, calling a - * `visitor` function with three arguments: - * - `key`: For sequence values and map `Pair`, the node's index in the - * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. - * `null` for the root node. - * - `node`: The current node. - * - `path`: The ancestry of the current node. - * - * The return value of the visitor may be used to control the traversal: - * - `Promise`: Must resolve to one of the following values - * - `undefined` (default): Do nothing and continue - * - `visit.SKIP`: Do not visit the children of this node, continue with next - * sibling - * - `visit.BREAK`: Terminate traversal completely - * - `visit.REMOVE`: Remove the current node, then continue with the next one - * - `Node`: Replace the current node, then continue by visiting it - * - `number`: While iterating the items of a sequence or map, set the index - * of the next step. This is useful especially if the index of the current - * node has changed. - * - * If `visitor` is a single function, it will be called with all values - * encountered in the tree, including e.g. `null` values. Alternatively, - * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, - * `Alias` and `Scalar` node. To define the same visitor function for more than - * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) - * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most - * specific defined one will be used for each node. - */ -export declare function visitAsync(node: Node | Document | null, visitor: asyncVisitor): Promise; -export declare namespace visitAsync { - var BREAK: symbol; - var SKIP: symbol; - var REMOVE: symbol; -} -- cgit