Skip to content

Commit dadfca9

Browse files
committed
more this
1 parent 2a4ad73 commit dadfca9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,15 @@ export interface Slice<
103103
/**
104104
* Get localised slice selectors (expects to be called with *just* the slice's state as the first parameter)
105105
*/
106-
getSelectorFactories(): Id<
107-
SliceDefinedSelectorFactories<State, SelectorFactories, State>
108-
>
106+
getSelectorFactories(
107+
this: this
108+
): Id<SliceDefinedSelectorFactories<State, SelectorFactories, State>>
109109

110110
/**
111111
* Get globalised slice selector factories (`selectState` callback is expected to receive first parameter and return slice state)
112112
*/
113113
getSelectorFactories<RootState>(
114+
this: this,
114115
selectState: (rootState: RootState) => State
115116
): Id<SliceDefinedSelectorFactories<State, SelectorFactories, RootState>>
116117

0 commit comments

Comments
 (0)