Type

interface

npm Package @angular/core
Module import { Type } from '@angular/core';
Source core/src/type.ts

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

Interface Overview

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.

Child Interfaces

  • TypeProvider

Members

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

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