W3cubDocs

/Angular

Type

interface stable

Represents a type that a Component or other object is instances of.

interface Type<T> extends Function {
  new (...args: any[]): T
}

Description

An example of a Type is MyCustomComponent class, which in JavaScript is be represented by the MyCustomComponent constructor function.

Methods

construct signature

new (...args: any[]): T

Parameters

args

Type: any[].

Returns

T

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/Type