Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface GanttChart incorrectly extends interface 'BaseElement' on version 19.0.1 #123

Open
cbenne-rl opened this issue Apr 23, 2024 · 0 comments

Comments

@cbenne-rl
Copy link

Describe the bug
Failure to compile. Message is below:

Error: node_modules/smart-webcomponents-angular/index.d.ts:13784:18 - error TS2430: Interface 'GanttChart' incorrectly extends interface 'BaseElement'.
  Types of property 'scrollTo' are incompatible.
    Type '{ (date: Date): void; (options?: ScrollToOptions | undefined): void; }' is not assignable to type '{ (options?: ScrollToOptions | undefined): void; (x: number, y: number): void; }'.
      Types of parameters 'date' and 'x' are incompatible.
        Type 'number' is not assignable to type 'Date'.

13784 export interface GanttChart extends BaseElement, GanttChartProperties {
                       ~~~~~~~~~~


Error: node_modules/smart-webcomponents-angular/index.d.ts:14767:84 - error TS2344: Type 'GanttChart' does not satisfy the constraint 'Element'.
  Types of property 'scrollTo' are incompatible.
    Type '{ (date: Date): void; (options?: ScrollToOptions | undefined): void; }' is not assignable to type '{ (options?: ScrollToOptions | undefined): void; (x: number, y: number): void; }'.
      Types of parameters 'date' and 'x' are incompatible.
        Type 'number' is not assignable to type 'Date'.

14767         getElementsByTagName(qualifiedName: "smart-gantt-chart"): HTMLCollectionOf<GanttChart>;
                                                                                         ~~~~~~~~~~

tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noImplicitOverride": true,
    "noPropertyAccessFromIndexSignature": true,
    "strictPropertyInitialization": false,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "ES2022",
    "module": "es2022",
    "lib": ["es2022", "dom"]
    "useDefineForClassFields": false
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true
  }
}

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
Downgrading to 18.0.2 resolves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant