Skip to content

Commit bd5d395

Browse files
set type to unknown instead of any
1 parent df6eb1a commit bd5d395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/setItemInSessionStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const setItemInSessionStorage = (key: string, value: any) => {
1+
export const setItemInSessionStorage = (key: string, value: unknown) => {
22
const storage = sessionStorage.getItem('infinite-scroll-feed')
33
const parsedTracker = storage ? JSON.parse(storage) : {}
44
parsedTracker[key] = value

0 commit comments

Comments
 (0)