package npm;

import npm.forever.ForeverOptions;

@:jsRequire("forever-monitor", "Monitor")
extern class ForeverMonitor {
  function new(scriptPath : String, ?options : ForeverOptions);

  function on(event : String, callback : ?Dynamic -> Void): Void;

  function start() : Void;
}

package npm;

import haxe.Constraints.Function;
import npm.forever.ForeverOptions;

@:jsRequire("forever-monitor", "Monitor")
extern class ForeverMonitor {
  function new(scriptPath : String, ?options : ForeverOptions);

  function on(event : String, callback : Function): Void;

  function start() : Void;
}

Change forever callback to haxe.Constraints.Function
Change forever callback to haxe.Constraints.Function

abedev/npm,abedev/npm