We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd34f1e commit 6e32e0bCopy full SHA for 6e32e0b
core/typescript.md
@@ -164,7 +164,7 @@ type State = {
164
165
export const state: State = {
166
foo: 'bar',
167
- shoutedFoo: derived<State>(state => state.foo + '!!!')
+ shoutedFoo: derived<State, string>(state => state.foo + '!!!')
168
}
169
```
170
{% endtab %}
@@ -187,7 +187,7 @@ type State = {
187
188
189
nested: {
190
- shoutedFoo: derived<State['nested']>(state => state.foo + '!!!')
+ shoutedFoo: derived<State['nested'], string>(state => state.foo + '!!!')
191
192
193
0 commit comments