tomastrajan / angular-ngrx-material-starter

Angular, NgRx, Angular CLI & Angular Material Starter Project
https://tomastrajan.github.io/angular-ngrx-material-starter
MIT License
2.83k stars 917 forks source link

Typescript : use namespace as type in typescript #445

Closed rjain15 closed 5 years ago

rjain15 commented 5 years ago

Not sure if this is based on the typescript version I have, I was getting an error "Cannot use namespace as a type" in the the constructor of app.component.ts

I changed this based on this stackoverflow suggestion https://stackoverflow.com/questions/42815932/use-namespace-as-type-in-typescript and I got it working

  constructor(
    private store: Store<typeof AppState>,
    private storageService: typeof LocalStorageService
  ) {}
tomastrajan commented 5 years ago

Project went through major update to Angular 8, please open new issue if the behavior persists. ( Old issue cleanup)