Skip to content

Commit 20a9555

Browse files
committed
docs: fix typing example
1 parent bc83daf commit 20a9555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ You can also make a component use its own local cache:
8383
In TypeScript you can declare the data type you get:
8484
```ts
8585
const { get } = useCached()
86-
get<number>('indexKeyForValue')
86+
get<string, 'data', number>('indexKeyForValue') // is expected to be a number
8787
```
8888

8989
#### Get multiple values

0 commit comments

Comments
 (0)