Skip to content

Commit

Permalink
Change to storage-event.ts for compatibility with Angular 5
Browse files Browse the repository at this point in the history
Change to storage-event.ts for compatibility with Angular 5

```
ERROR in node_modules/ngx-store/src/utility/storage/storage-event.d.ts(1,22): error TS2420: Class 'NgxStorageEvent' incorrectly implements interface 'StorageEvent'.
  Property 'NONE' is missing in type 'NgxStorageEvent'.
```

```
ERROR in node_modules/ngx-store/src/utility/storage/storage-event.d.ts(1,22): error TS2420: Class 'NgxStorageEvent' incorrectly implements interface 'StorageEvent'.
  Property 'oldValue' is optional in type 'NgxStorageEvent' but required in type 'StorageEvent'.
```
  • Loading branch information
adammendoza authored May 4, 2018
1 parent 8f83919 commit e038735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utility/storage/storage-event.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export class NgxStorageEvent implements StorageEvent {
protected static initTimeStamp = Date.now();
public oldValue?: any;
public oldValue: any;
public newValue: any;
public NONE: any;
public timeStamp = (Date.now() - NgxStorageEvent.initTimeStamp);
public readonly bubbles = false;
public readonly cancelBubble = false;
Expand Down

0 comments on commit e038735

Please sign in to comment.