smart-webcomponents
smart-webcomponents copied to clipboard
Interface GanttChart incorrectly extends interface 'BaseElement' on version 19.0.1
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