// @lib: es5,dom // In Node, ErrorConstructor is augmented with extra properties. Excerpted below. interface ErrorConstructor { captureStackTrace(targetObject: Object, constructorOpt?: Function): void; } declare var x: ErrorConstructor x = Error; // OK x = RangeError; new x().message x.captureStackTrace