ClassDefinition

Stable Interface

Interface Overview

interface ClassDefinition {
  extends : Type<any>
  constructor : Function|any[]
}

Interface Description

Declares the interface to be used with Class.

Interface Details

extends : Type<any>

Optional argument for specifying the superclass.

constructor : Function|any[]

Required constructor function for a class.

The function may be optionally wrapped in an Array, in which case additional parameter annotations may be specified. The number of arguments and the number of parameter annotations must match.

See Class for example of usage.

exported from @angular/core/index, defined in @angular/core/src/util/decorators.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/core/index/ClassDefinition-interface.html