🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
18
node_modules/emmet/dist/markup/utils.d.ts
generated
vendored
Normal file
18
node_modules/emmet/dist/markup/utils.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import type { Abbreviation, AbbreviationNode } from '@emmetio/abbreviation';
|
||||
export type Container = Abbreviation | AbbreviationNode;
|
||||
export type WalkVisitor<S> = (node: AbbreviationNode, ancestors: Container[], state?: S) => void;
|
||||
/**
|
||||
* Walks over each child node of given markup abbreviation AST node (not including
|
||||
* given one) and invokes `fn` on each node.
|
||||
* The `fn` callback accepts context node, list of ancestor nodes and optional
|
||||
* state object
|
||||
*/
|
||||
export declare function walk<S>(node: Container, fn: WalkVisitor<S>, state?: S): void;
|
||||
/**
|
||||
* Finds node which is the deepest for in current node or node itself.
|
||||
*/
|
||||
export declare function findDeepest(node: Container): {
|
||||
node: Container;
|
||||
parent?: Container;
|
||||
};
|
||||
export declare function isNode(node: Container): node is AbbreviationNode;
|
||||
Loading…
Add table
Add a link
Reference in a new issue