marko
Version:
Optimized runtime for Marko templates.
17 lines (16 loc) • 442 B
TypeScript
import type { types as t } from "@marko/compiler";
interface Evaluated {
confident: boolean;
computed: unknown;
nullable: boolean;
/** Evaluating it has no side effects. */
pure: boolean;
}
declare const kEvaluated: unique symbol;
declare module "@marko/compiler/dist/types" {
interface NodeExtra {
[kEvaluated]?: Evaluated;
}
}
export default function evaluate(value: t.Expression): Evaluated;
export {};