How to Access an nested interface property with an index in a function signature #265
Unanswered
st-clair-clarke
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following (except updateXom()) is taken from https://ngneat.github.io/elf/docs/immer
The method...:
export function updateFilter(filter: TodosProps['filter'])
seems to be indexing the property 'filter'.
For the function updateXom (my attempt), is the signature correct? If so, is there a more concise way to do it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions