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
Simlilar to #97 but this occurs after upgrading to Angular 13 which uses typescript 4.4
Error: node_modules/ngx-store/lib/utility/storage/storage-event.d.ts:1:22 - error TS2420: Class 'NgxStorageEvent<T>' incorrectly implements interface 'Omit<StorageEvent, "oldValue" | "newValue">'.
Property 'initStorageEvent' is missing in type 'NgxStorageEvent<T>' but required in type 'Omit<StorageEvent, "oldValue" | "newValue">'.
StorageEvent is now defined as
interfaceStorageEventextendsEvent{/** * Returns the key of the storage item being changed. */readonlykey: string|null;/** * Returns the new value of the key of the storage item whose value is being changed. */readonlynewValue: string|null;/** * Returns the old value of the key of the storage item whose value is being changed. */readonlyoldValue: string|null;/** * Returns the Storage object that was affected. */readonlystorageArea: Storage|null;/** * Returns the URL of the document whose storage item changed. */readonlyurl: string;initStorageEvent(type: string,bubbles?: boolean,cancelable?: boolean,key?: string|null,oldValue?: string|null,newValue?: string|null,url?: string|URL,storageArea?: Storage|null): void;}
adding the prototype for initStorageEvent to storage-event.d.ts allows it to compile but should it be added to Omit instead?
The text was updated successfully, but these errors were encountered:
Simlilar to #97 but this occurs after upgrading to Angular 13 which uses typescript 4.4
StorageEvent is now defined as
adding the prototype for
initStorageEvent
to storage-event.d.ts allows it to compile but should it be added toOmit
instead?The text was updated successfully, but these errors were encountered: