Skip to content

Commit ed0b7cb

Browse files
committed
Fixed Deprecated Action
1 parent 27214e1 commit ed0b7cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/react/router/Types.hx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ typedef RoutePropsOf<P, Q> = {
3131
}
3232

3333
private typedef Object = Any;
34-
@:enum
35-
private abstract Action(String) {
34+
#if haxe4 private enum #else @:enum private #end abstract Action(String) {
3635
var Push = 'PUSH';
3736
var Replace = 'REPLACE';
3837
var Pop = 'POP';
3938
}
39+
4040
private typedef Component = EitherType<Class<ReactComponent>, String>;
4141
private typedef EnterHook<P, Q> = RouterState<P, Q>->RedirectFunction<Q>->?Function->Any;
4242
private typedef Hash = String;

0 commit comments

Comments
 (0)