Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created September 12, 2019 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleersoy/ba74936b75dec415709c369ec5e78861 to your computer and use it in GitHub Desktop.
Save oleersoy/ba74936b75dec415709c369ec5e78861 to your computer and use it in GitHub Desktop.
type.ts
Type '({ path: string; redirectTo: string; pathMatch: string; } | { path: string; component: typeof HomeComponent; } | { path: string; canActivate: string; component: typeof LoginComponent; })[]' is not assignable to type 'Route[]'.
Type '{ path: string; redirectTo: string; pathMatch: string; } | { path: string; component: typeof HomeComponent; } | { path: string; canActivate: string; component: typeof LoginComponent; }' is not assignable to type 'Route'.
Type '{ path: string; canActivate: string; component: typeof LoginComponent; }' is not assignable to type 'Route'.
Types of property 'canActivate' are incompatible.
Type 'string' is not assignable to type 'any[]'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment