Skip to content

Commit 00472df

Browse files
committed
Add router push binding
1 parent 25fc0a8 commit 00472df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/Next.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ module Router = {
104104
events: Events.t,
105105
};
106106

107+
[@bs.send] external push: (router, string ) => unit = "push";
108+
107109
[@bs.module "next/router"] external useRouter: unit => router = "useRouter";
108110
};
109111

0 commit comments

Comments
 (0)