laker007 / ionic3-calendar

Ionic Calendar Component
22 stars 24 forks source link

Typescript error #7

Open FacundoGimenez opened 6 years ago

FacundoGimenez commented 6 years ago

Class 'Nav' incorrectly extends base class 'NavControllerBase'. Types of property 'goToRoot' are incompatible. Type '(opts: NavOptions) => Promise' is not assignable to type '(opts: NavOptions) => Promise'. Type 'Promise' is not assignable to type 'Promise'. Type 'any' is not assignable to type 'never'

Class 'Tab' incorrectly extends base class 'NavControllerBase'. Types of property 'goToRoot' are incompatible. Type '(opts: NavOptions) => Promise' is not assignable to type '(opts: NavOptions) => Promise'. Type 'Promise' is not assignable to type 'Promise'. Class 'Subject' incorrectly extends base class 'Observable'. Types of property 'lift' are incompatible. Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'. Type 'Observable' is not assignable to type 'Observable'. Type 'T' is not assignable to type 'R'.

any fix?

wcustodio commented 6 years ago

The same error here... any fix?

FacundoGimenez commented 6 years ago

Nop i didn't got any fix yet, when i got any solution i'll post it here.

hari-allamraju commented 6 years ago

I was able to get around this by adding the below lines to tsconfig.json

"skipLibCheck": true, "noStrictGenericChecks": true,