Skip to content

Commit d9c980a

Browse files
crisbetoamishne
authored andcommitted
build: initial test of TypeScript 6
Resolves some initial test failures after updating to TypeScript 6.
1 parent 4831a9f commit d9c980a

File tree

62 files changed

+171
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+171
-211
lines changed

devtools/projects/ng-devtools-backend/src/lib/component-tree/component-tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export function isOnPushDirective(dir: any): boolean {
293293
case Framework.Wiz:
294294
return false;
295295
default:
296-
throw new Error(`Unknown framework: "${metadata.framework}".`);
296+
throw new Error(`Unknown framework: "${(metadata as {framework: string}).framework}".`);
297297
}
298298
}
299299

modules/benchmarks/src/change_detection/change_detection.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index';
9+
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index.js';
1010
import {$} from 'protractor';
1111

1212
describe('change detection benchmark', () => {

modules/benchmarks/src/change_detection/change_detection.perf-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runBenchmark, verifyNoBrowserErrors} from '../../../utilities/index';
9+
import {runBenchmark, verifyNoBrowserErrors} from '../../../utilities/index.js';
1010
import {$} from 'protractor';
1111

1212
interface Worker {

modules/benchmarks/src/change_detection/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {getIntParameter} from '../util';
9+
import {getIntParameter} from '../util.js';
1010

1111
export const numViews: number = getIntParameter('viewCount');
1212

modules/benchmarks/src/class_bindings/class_bindings.perf-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runBenchmark} from '../../../utilities/index';
9+
import {runBenchmark} from '../../../utilities/index.js';
1010
import {$, browser} from 'protractor';
1111

1212
describe('class bindings perf', () => {

modules/benchmarks/src/defer/defer.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index';
9+
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index.js';
1010
import {$} from 'protractor';
1111

1212
describe('defer benchmark', () => {

modules/benchmarks/src/defer/defer.perf-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runBenchmark, verifyNoBrowserErrors} from '../../../utilities/index';
9+
import {runBenchmark, verifyNoBrowserErrors} from '../../../utilities/index.js';
1010
import {$} from 'protractor';
1111

1212
interface Worker {

modules/benchmarks/src/expanding_rows/expanding_rows.perf-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runBenchmark} from '../../../utilities/index';
9+
import {runBenchmark} from '../../../utilities/index.js';
1010
import {$, browser} from 'protractor';
1111

1212
describe('benchmarks', () => {

modules/benchmarks/src/hydration/hydration.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index';
9+
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index.js';
1010
import {$} from 'protractor';
1111

1212
describe('hydration benchmark', () => {

modules/benchmarks/src/hydration/hydration.perf-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runBenchmark, verifyNoBrowserErrors} from '../../../utilities/index';
9+
import {runBenchmark, verifyNoBrowserErrors} from '../../../utilities/index.js';
1010
import {$} from 'protractor';
1111

1212
interface Worker {

0 commit comments

Comments
 (0)