cel-ts - v0.1.0-alpha
    Preparing search index...

    Type Alias MacroExpander

    MacroExpander: (
        helper: Helper,
        target: Expr | undefined,
        args: Expr[],
    ) => Expr | undefined

    Macro expander function type. Takes a parser helper (for constructing AST expressions), optional target (for receiver-style macros), and arguments. Returns the expanded expression or undefined if expansion should not occur. Throws MacroError if the macro matches but arguments are invalid.

    Type Declaration

      • (helper: Helper, target: Expr | undefined, args: Expr[]): Expr | undefined
      • Parameters

        • helper: Helper
        • target: Expr | undefined
        • args: Expr[]

        Returns Expr | undefined