• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// @lib: es5,dom
2// In Node, ErrorConstructor is augmented with extra properties. Excerpted below.
3interface ErrorConstructor {
4  captureStackTrace(targetObject: Object, constructorOpt?: Function): void;
5}
6
7declare var x: ErrorConstructor
8x = Error; // OK
9x = RangeError;
10new x().message
11x.captureStackTrace
12