svelte-ast-print
Version:
Serialize Svelte AST nodes into stringified syntax. A.k.a parse in reverse.
16 lines • 508 B
TypeScript
import type * as JS from "estree";
import type { AST as SV } from "svelte/compiler";
import type { Node, SvelteOnlyNode } from "./type.ts";
export declare function isSvelteOnlyNode(n: JS.BaseNode | SV.BaseNode): n is SvelteOnlyNode;
/**
* Instance with the result of printing _(serializing)_ AST {@link Node}.
*/
export declare class Result<N extends Node = Node> {
#private;
node: N;
/**
* Get the stringified output.
*/
get code(): string;
}
//# sourceMappingURL=shared.d.ts.map