UNPKG

marko

Version:

Optimized runtime for Marko templates.

6 lines (5 loc) 278 B
import { types as t } from "@marko/compiler"; /** * Given any arbitrary function type will normalize method like functions into expressions. */ export declare function simplifyFunction(fn: t.Function): t.FunctionDeclaration | t.FunctionExpression | t.ArrowFunctionExpression;