ngrx-store-localstorage icon indicating copy to clipboard operation
ngrx-store-localstorage copied to clipboard

Get different properties by store

Open ndr-88 opened this issue 4 years ago • 0 comments

In my store I have a key called sidebar:

sidebar: {list: {pages: 0, size: 3, folders: [{id: 1, name: 'test'}] } , role: 'ADMIN' }

I want to get the key page and size by the feature_key 'list' but also the string of the property role, but it seems I can't. I tried in this way:

keys: [ { sidebar: [ { list: ['pages', 'size'], }, 'role' ], }, ],

I have an error: Type 'string' is not assignable to type 'KeyConfiguration'

ndr-88 avatar Nov 24 '21 11:11 ndr-88