next-restore-scroll-position
Advanced tools
Comparing version
interface Router { | ||
asPath: string; | ||
events: { | ||
on: (event: unknown, callback: (data?: any) => void) => void; | ||
off: (event: unknown, callback: (data?: any) => void) => void; | ||
on: (event: any, callback: (data?: any) => void) => void; | ||
off: (event: any, callback: (data?: any) => void) => void; | ||
}; | ||
@@ -7,0 +7,0 @@ beforePopState: (callback: () => boolean) => void; |
{ | ||
"name": "next-restore-scroll-position", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Restores scroll position when navigating back and forth in NextJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -7,4 +7,4 @@ import { useEffect, useRef } from 'react' | ||
events: { | ||
on: (event: unknown, callback: (data?: any) => void) => void | ||
off: (event: unknown, callback: (data?: any) => void) => void | ||
on: (event: any, callback: (data?: any) => void) => void | ||
off: (event: any, callback: (data?: any) => void) => void | ||
} | ||
@@ -11,0 +11,0 @@ beforePopState: (callback: () => boolean) => void |
Sorry, the diff of this file is not supported yet
12429
-0.19%