Skip to content

Instantly share code, notes, and snippets.

@samverneck
Last active August 3, 2017 03:42
Show Gist options
  • Save samverneck/c51d9ed9a69256de4c9f719b53bd098a to your computer and use it in GitHub Desktop.
Save samverneck/c51d9ed9a69256de4c9f719b53bd098a to your computer and use it in GitHub Desktop.
ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (55,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T>'.
  Type 'T | T[]' is not assignable to type 'T'.
    Type 'T[]' is not assignable to type 'T'.

ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (69,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T[]>'.
  Type 'T | T[]' is not assignable to type 'T[]'.
    Type 'T' is not assignable to type 'T[]'.
      Type '{ id: string; }' is not assignable to type 'T[]'.
        Property 'includes' is missing in type '{ id: string; }'.

ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (100,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T>'.

ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (116,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T>'.

ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (132,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T>'.
webpack: Failed to compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment