package router.client.api2;

import javax.annotation.Nonnull;
import jsinterop.annotations.JsFunction;
import router.client.location.Location;
import router.client.route.Route;

@JsFunction
@FunctionalInterface
public interface OnEnterCallback
{
  void onEnter( @Nonnull Location nextLocation );

  default OnEnterCallbackAsync asAsync()
  {
    return new OnEnterCallbackAsyncAdapter( this );
  }
}

@@ -139,42 +139,8 @@
 ion;
-%0Aimport router.client.route.Route;
 %0A%0A@J

Optimise imports