UNPKG

664 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/**
9 * @whatItDoes Represents a type that a Component or other object is instances of.
10 *
11 * @description
12 *
13 * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
14 * the `MyCustomComponent` constructor function.
15 *
16 * @stable
17 */
18export declare const Type: FunctionConstructor;
19export declare function isType(v: any): v is Type<any>;
20export interface Type<T = object> extends Function {
21 new (...args: any[]): T;
22}