Skip to content

Commit d8c89cb

Browse files
committed
fix: add typing for Slice
1 parent c67a562 commit d8c89cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/store/searchResult/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
createSlice,
3+
Slice,
34
PayloadAction
45
} from '@reduxjs/toolkit';
56

@@ -19,7 +20,7 @@ const initialState: SearchResultState = {
1920
geoJSONFeature: null
2021
};
2122

22-
export const slice = createSlice({
23+
export const slice: Slice<SearchResultState> = createSlice({
2324
name: 'searchResultDrawer',
2425
initialState,
2526
reducers: {

0 commit comments

Comments
 (0)