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:
parent
481540dd4e
commit
9d290b4fef
|
@ -6,7 +6,7 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* 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>> {
|
export interface NgForOfContext<T, U extends NgIterable<T>> {
|
||||||
$implicit: T;
|
$implicit: T;
|
||||||
|
@ -19,10 +19,6 @@ export interface NgForOfContext<T, U extends NgIterable<T>> {
|
||||||
index: number;
|
index: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TrackByFunction<T> {
|
|
||||||
(index: number, item: T): any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface NgIfContext<T = unknown> {
|
export interface NgIfContext<T = unknown> {
|
||||||
$implicit: T;
|
$implicit: T;
|
||||||
ngIf: T;
|
ngIf: T;
|
||||||
|
|
|
@ -114,3 +114,7 @@ export interface PipeTransform {
|
||||||
export interface OnDestroy {
|
export interface OnDestroy {
|
||||||
ngOnDestroy(): void;
|
ngOnDestroy(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface TrackByFunction<T> {
|
||||||
|
(index: number, item: T): any;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue