UNPKG

svelte-ast-print

Version:

Serialize Svelte AST nodes into stringified syntax. A.k.a parse in reverse.

13 lines 457 B
/** * Printer related to Svelte **fragment** AST nodes only. * @module svelte-ast-print/fragment */ import type { AST as SV } from "svelte/compiler"; import type { PrintOptions } from "./_internal/option.ts"; import { type Result } from "./_internal/shared.ts"; /** * @since 1.0.0 * @__NO_SIDE_EFFECTS__ */ export declare function printFragment(n: SV.Fragment, opts?: Partial<PrintOptions>): Result<SV.Fragment>; //# sourceMappingURL=fragment.d.ts.map