Code Monkey home page Code Monkey logo

angular-typed-forms's People

Contributors

dbitkovski avatar de-don avatar denis-dontsov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-typed-forms's Issues

the library explodes when compiling the project

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.