Skip to content

Commit 6e32e0b

Browse files
christianalfonigitbook-bot
authored andcommitted
GitBook: [v23] one page modified
1 parent bd34f1e commit 6e32e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ type State = {
164164

165165
export const state: State = {
166166
foo: 'bar',
167-
shoutedFoo: derived<State>(state => state.foo + '!!!')
167+
shoutedFoo: derived<State, string>(state => state.foo + '!!!')
168168
}
169169
```
170170
{% endtab %}
@@ -187,7 +187,7 @@ type State = {
187187
export const state: State = {
188188
foo: 'bar',
189189
nested: {
190-
shoutedFoo: derived<State['nested']>(state => state.foo + '!!!')
190+
shoutedFoo: derived<State['nested'], string>(state => state.foo + '!!!')
191191
}
192192
}
193193
```

0 commit comments

Comments
 (0)