You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read all the library's documentation (README, CHANGELOG, MIGRATION and /docs)
I understand I am writing to a human being, doing this open source project on his free time
I will be involved in my own issue, by answering questions and informing if the issue is resolved
Configuration
@ngx-pwa/local-storage version: 10.x
Angular version (ng version): 10.x
Description of the issue
Currently the options enum, items and required only support mutable arrays.
How to reproduce the issue
Example of enum:
const themes = ['dark', 'light'] as const;
this.storageMap.get<Theme>('theme', { enum: themes })
// The type 'readonly ["dark", "light"]' is 'readonly' and cannot be assigned to the mutable type 'string[]'.
The text was updated successfully, but these errors were encountered:
Checks before posting an issue
Configuration
@ngx-pwa/local-storage
version: 10.xng version
): 10.xDescription of the issue
Currently the options
enum
,items
andrequired
only support mutable arrays.How to reproduce the issue
Example of
enum
:The text was updated successfully, but these errors were encountered: