Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

the library explodes when compiling the project #1

Open
SrHuevo opened this issue Mar 3, 2021 · 0 comments
Open

the library explodes when compiling the project #1

SrHuevo opened this issue Mar 3, 2021 · 0 comments

Comments

@SrHuevo
Copy link

SrHuevo commented Mar 3, 2021

First of all, congratulations on the bookstore, it's great!

But when I compile my project the library explodes:

  Type 'Observable<T>' is not assignable to type 'Observable<any>'.
    The types of 'source.operator.call' are incompatible between these types.
      Type '(subscriber: import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Subscriber").Subscriber<any>, source: any) => import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modul...' is not assignable to type '(subscriber: import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Subscriber").Subscriber<any>, source: any) => import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/types").TeardownLogic'.
        Types of parameters 'subscriber' and 'subscriber' are incompatible.
          Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Subscriber").Subscriber<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Subscriber").Subscriber<any>'.
            Property 'isStopped' is protected but type 'Subscriber<T>' is not a class derived from 'Subscriber<T>'.

8         valueChanges: Observable<T>;
          ~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:10:9 - error TS2416: Property 'statusChanges' in type 'AbstractControlTyped<T>' is not assignable to the same property in base type 'AbstractControl'.
  Type 'Observable<STATUS>' is not assignable to type 'Observable<any>'.
    Types of property 'source' are incompatible.
      Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

10         statusChanges: Observable<STATUS>;
           ~~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:11:9 - error TS2416: Property 'get' in type 'AbstractControlTyped<T>' is not assignable to the same property in base type 'AbstractControl'.
  Type '<V = unknown>(path: string | Extract<keyof T, string> | (string | number | Extract<keyof T, string>)[]) => AbstractControlTyped<V>' is not assignable to type '(path: string | (string | number)[]) => AbstractControl'.
    Call signature return types 'AbstractControlTyped<any>' and 'AbstractControl' are incompatible.
      The types of 'valueChanges' are incompatible between these types.
        Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

11         get<V = unknown>(path: (stringKeys<T> | string | number)[] | stringKeys<T> | string): AbstractControlTyped<V> | null;
           ~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:28:9 - error TS2416: Property 'valueChanges' in type 'FormControlTyped<T>' is not assignable to the same property in base type 'FormControl'.
  Type 'Observable<T>' is not assignable to type 'Observable<any>'.
    Types of property 'source' are incompatible.
      Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

28         valueChanges: Observable<T>;
           ~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:30:9 - error TS2416: Property 'statusChanges' in type 'FormControlTyped<T>' is not assignable to the same property in base type 'FormControl'.
  Type 'Observable<STATUS>' is not assignable to type 'Observable<any>'.

30         statusChanges: Observable<STATUS>;
           ~~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:31:9 - error TS2416: Property 'get' in type 'FormControlTyped<T>' is not assignable to the same property in base type 'FormControl'.
  Type '<V = unknown>(path: string | Extract<keyof T, string> | (string | number | Extract<keyof T, string>)[]) => AbstractControlTyped<V>' is not assignable to type '(path: string | (string | number)[]) => AbstractControl'.
    Type 'AbstractControlTyped<any>' is not assignable to type 'AbstractControl'.

31         get<V = unknown>(path: (stringKeys<T> | string | number)[] | stringKeys<T> | string): AbstractControlTyped<V> | null;
           ~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:49:9 - error TS2416: Property 'controls' in type 'FormGroupTyped<T>' is not assignable to the same property in base type 'FormGroup'.
  Type '{ [P in keyof T]: AbstractControlTyped<T[P]>; }' is not assignable to type '{ [key: string]: AbstractControl; }'.
    Type 'AbstractControlTyped<T[P]>' is not assignable to type 'AbstractControl'.
      The types of 'valueChanges.source' are incompatible between these types.
        Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

49         controls: {
           ~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:52:9 - error TS2416: Property 'registerControl' in type 'FormGroupTyped<T>' is not assignable to the same property in base type 'FormGroup'.
  Type '<P extends Extract<keyof T, string>>(name: P, control: AbstractControlTyped<T[P]>) => AbstractControlTyped<T[P]>' is not assignable to type '(name: string, control: AbstractControl) => AbstractControl'.
    Types of parameters 'control' and 'control' are incompatible.
      Type 'AbstractControl' is not assignable to type 'AbstractControlTyped<T[Extract<keyof T, string>]>'.
        The types of 'valueChanges.source.operator.call' are incompatible between these types.
          Type '(subscriber: import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Subscriber").Subscriber<any>, source: any) => import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/types").TeardownLogic' is not assignable to type '(subscriber: import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Subscriber").Subscriber<any>, source: any) => import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modul...'.
            Types of parameters 'subscriber' and 'subscriber' are incompatible.
              Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Subscriber").Subscriber<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Subscriber").Subscriber<any>'.
                Property 'isStopped' is protected but type 'Subscriber<T>' is not a class derived from 'Subscriber<T>'.

52         registerControl<P extends stringKeys<T>>(name: P, control: AbstractControlTyped<T[P]>): AbstractControlTyped<T[P]>;
           ~~~~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:53:9 - error TS2416: Property 'addControl' in type 'FormGroupTyped<T>' is not assignable to the same property in base type 'FormGroup'.
  Type '<P extends Extract<keyof T, string>>(name: P, control: AbstractControlTyped<T[P]>) => void' is not assignable to type '(name: string, control: AbstractControl) => void'.
    Types of parameters 'control' and 'control' are incompatible.
      Type 'AbstractControl' is not assignable to type 'AbstractControlTyped<T[Extract<keyof T, string>]>'.

53         addControl<P extends stringKeys<T>>(name: P, control: AbstractControlTyped<T[P]>): void;
           ~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:55:9 - error TS2416: Property 'setControl' in type 'FormGroupTyped<T>' is not assignable to the same property in base type 'FormGroup'.
  Type '<P extends Extract<keyof T, string>>(name: P, control: AbstractControlTyped<T[P]>) => void' is not assignable to type '(name: string, control: AbstractControl) => void'.
    Types of parameters 'control' and 'control' are incompatible.
      Type 'AbstractControl' is not assignable to type 'AbstractControlTyped<T[Extract<keyof T, string>]>'.

55         setControl<P extends stringKeys<T>>(name: P, control: AbstractControlTyped<T[P]>): void;
           ~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:64:9 - error TS2416: Property 'valueChanges' in type 'FormGroupTyped<T>' is not assignable to the same property in base type 'FormGroup'.
  Type 'Observable<T>' is not assignable to type 'Observable<any>'.
    Types of property 'source' are incompatible.
      Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

64         valueChanges: Observable<T>;
           ~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:66:9 - error TS2416: Property 'statusChanges' in type 'FormGroupTyped<T>' is not assignable to the same property in base type 'FormGroup'.
  Type 'Observable<STATUS>' is not assignable to type 'Observable<any>'.

66         statusChanges: Observable<STATUS>;
           ~~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:82:9 - error TS2416: Property 'controls' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type 'AbstractControlTyped<T>[]' is not assignable to type 'AbstractControl[]'.
    Type 'AbstractControlTyped<T>' is not assignable to type 'AbstractControl'.
      The types of 'valueChanges.source' are incompatible between these types.
        Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

82         controls: AbstractControlTyped<T>[];
           ~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:83:9 - error TS2416: Property 'at' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type '(index: number) => AbstractControlTyped<T>' is not assignable to type '(index: number) => AbstractControl'.
    Type 'AbstractControlTyped<T>' is not assignable to type 'AbstractControl'.

83         at(index: number): AbstractControlTyped<T>;
           ~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:84:9 - error TS2416: Property 'push' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type '<V extends T = T>(ctrl: AbstractControlTyped<V>) => void' is not assignable to type '(control: AbstractControl) => void'.
    Types of parameters 'ctrl' and 'control' are incompatible.
      Type 'AbstractControl' is not assignable to type 'AbstractControlTyped<any>'.
        Types of property 'valueChanges' are incompatible.
          Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>'.

84         push<V extends T = T>(ctrl: AbstractControlTyped<V>): void;
           ~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:85:9 - error TS2416: Property 'insert' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type '<V extends T = T>(index: number, control: AbstractControlTyped<V>) => void' is not assignable to type '(index: number, control: AbstractControl) => void'.
    Types of parameters 'control' and 'control' are incompatible.
      Type 'AbstractControl' is not assignable to type 'AbstractControlTyped<any>'.

85         insert<V extends T = T>(index: number, control: AbstractControlTyped<V>): void;
           ~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:86:9 - error TS2416: Property 'setControl' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type '<V extends T = T>(index: number, control: AbstractControlTyped<V>) => void' is not assignable to type '(index: number, control: AbstractControl) => void'.
    Types of parameters 'control' and 'control' are incompatible.
      Type 'AbstractControl' is not assignable to type 'AbstractControlTyped<any>'.

86         setControl<V extends T = T>(index: number, control: AbstractControlTyped<V>): void;
           ~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:101:9 - error TS2416: Property 'valueChanges' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type 'Observable<T[]>' is not assignable to type 'Observable<any>'.
    Types of property 'source' are incompatible.
      Type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/@saritasa/angular-typed-forms/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/danielgaroz/workspaces/booking-courses/hey-spanish-bookings-web-component/node_modules/rxjs/internal/Observable").Observable<any>'.

101         valueChanges: Observable<T[]>;
            ~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:103:9 - error TS2416: Property 'statusChanges' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type 'Observable<STATUS>' is not assignable to type 'Observable<any>'.

103         statusChanges: Observable<STATUS>;
            ~~~~~~~~~~~~~
node_modules/@saritasa/angular-typed-forms/lib/forms.d.ts:104:9 - error TS2416: Property 'get' in type 'FormArrayTyped<T>' is not assignable to the same property in base type 'FormArray'.
  Type '<V = unknown>(path: string | Extract<keyof T, string> | (string | number | Extract<keyof T, string>)[]) => AbstractControlTyped<V>' is not assignable to type '(path: string | (string | number)[]) => AbstractControl'.
    Type 'AbstractControlTyped<any>' is not assignable to type 'AbstractControl'.

104         get<V = unknown>(path: (stringKeys<T> | string | number)[] | stringKeys<T> | string): AbstractControlTyped<V> | null;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant