test(compiler-cli): move `TrackByFunction` from `fake_common` to `fake_core` (#41995)

The `TrackByFunction` is declared in `@angular/core` so it should also be
included in `fake_core` instead of `fake_common`.

PR Close #41995
This commit is contained in:
JoostK 2021-05-07 21:49:31 +02:00 committed by Jessica Janiuk
parent 481540dd4e
commit 9d290b4fef
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgIterable, TemplateRef, ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration} from '@angular/core';
import {NgIterable, TemplateRef, TrackByFunction, ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration} from '@angular/core';
export interface NgForOfContext<T, U extends NgIterable<T>> {
$implicit: T;
@ -19,10 +19,6 @@ export interface NgForOfContext<T, U extends NgIterable<T>> {
index: number;
}
export interface TrackByFunction<T> {
(index: number, item: T): any;
}
export interface NgIfContext<T = unknown> {
$implicit: T;
ngIf: T;

View File

@ -114,3 +114,7 @@ export interface PipeTransform {
export interface OnDestroy {
ngOnDestroy(): void;
}
export interface TrackByFunction<T> {
(index: number, item: T): any;
}