blob: e1d3e4d0c2a0da7e89858d29818f482138823d88 [file] [log] [blame]
/**
* @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;
};