UNPKG

marko

Version:

Optimized runtime for Marko templates.

23 lines (22 loc) 614 B
import { types as t } from "@marko/compiler"; import type { LoadTrigger } from "../../html/assets"; declare module "@marko/compiler/dist/types" { interface NodeExtra { tagImport?: string; loadImport?: LoadImportConfig; } } export type LoadImportConfig = { render: true; triggers?: never; } | { render: false; triggers: LoadTrigger[]; }; declare const _default: { analyze(this: unknown, importDecl: t.NodePath<t.ImportDeclaration>): void; translate: { exit(this: unknown, importDecl: t.NodePath<t.ImportDeclaration>): void; }; }; export default _default;