UNPKG

@angular/core

Version:

Angular - the core framework

20 lines (19 loc) 731 B
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// <amd-module name="@angular/core/schematics/migrations/static-queries/strategies/timing-strategy" /> import { NgQueryDefinition, QueryTiming } from '../angular/query-definition'; export interface TimingStrategy { /** Sets up the given strategy. Throws if the strategy could not be set up. */ setup(): void; /** Detects the timing result for a given query. */ detectTiming(query: NgQueryDefinition): TimingResult; } export declare type TimingResult = { timing: QueryTiming | null; message?: string; };