UNPKG

marko

Version:

Optimized runtime for Marko templates.

4 lines (3 loc) • 232 B
import { types as t } from "@marko/compiler"; export declare function toOnlyExpressionOrBlock(stmts: t.Statement[]): t.BlockStatement | t.Expression; export declare function toOnlyStatementOrBlock(body: t.Statement[]): t.Statement;