diff --git a/src/bindx/BindxExt.hx b/src/bindx/BindxExt.hx index d8e5570..d5d1443 100644 --- a/src/bindx/BindxExt.hx +++ b/src/bindx/BindxExt.hx @@ -32,20 +32,20 @@ typedef Chain = { @:access(bindx.BindMacros) class BindExt { - @:noUsing macro static public function expr(expr:Expr, listener:Expr):Expr { + @:noUsing macro static public function expr(expr:ExprOf, listener:ExprOf->Null->Void>):ExprOfVoid> { return internalBindExpr(expr, listener); } - @:noUsing macro static public function exprTo(expr:Expr, target:Expr):Expr { + @:noUsing macro static public function exprTo(expr:ExprOf, target:ExprOf):ExprOfVoid> { var type = Context.typeof(expr).toComplexType(); return internalBindExpr(expr, macro function (_, to:Null<$type>) $target = to); } - @:noUsing macro static public function chain(expr:Expr, listener:Expr):Expr { + @:noUsing macro static public function chain(expr:ExprOf, listener:ExprOf->Null->Void>):ExprOfVoid> { return internalBindChain(expr, listener); } - @:noUsing macro static public function chainTo(expr:Expr, target:Expr):Expr { + @:noUsing macro static public function chainTo(expr:ExprOf, target:ExprOf):ExprOfVoid> { var type = Context.typeof(expr).toComplexType(); return internalBindChain(expr, macro function (_, to:Null<$type>) $target = to); }