Skip to content

Commit 35e58ec

Browse files
committed
docs: add satisfies keyword
1 parent 2f7b0ef commit 35e58ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/createSlice.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface CounterState {
2525
value: number
2626
}
2727

28-
const initialState: CounterState = { value: 0 }
28+
const initialState = { value: 0 } satisfies CounterState as CounterState
2929

3030
const counterSlice = createSlice({
3131
name: 'counter',

0 commit comments

Comments
 (0)