UNPKG

marko

Version:

Optimized runtime for Marko templates.

7 lines (6 loc) • 470 B
import { types as t } from "@marko/compiler"; export declare function replaceMethodNode(node: t.ClassMethod | t.ClassPrivateMethod | t.ObjectMethod, replacement: t.Expression): t.ClassPrivateProperty | t.ClassProperty | t.ObjectProperty; /** * 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;