From 794ad5905b0862195d8a2193ae0cb00f128d889a Mon Sep 17 00:00:00 2001 From: Maciej Kucharski Date: Thu, 4 Feb 2016 16:00:23 +0100 Subject: [PATCH] Meteor.Error constructor can be also called with (number, string?, string?) see: http://docs.meteor.com/\#/full/meteor_error Even though property is specified as example right below shows usage with a number instead. --- meteor/meteor.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meteor/meteor.d.ts b/meteor/meteor.d.ts index 222de7ae7..251cafccc 100644 --- a/meteor/meteor.d.ts +++ b/meteor/meteor.d.ts @@ -522,10 +522,10 @@ declare module Match { declare module Meteor { var Error: ErrorStatic; interface ErrorStatic { - new(error: string, reason?: string, details?: string): Error; + new(error: string | number, reason?: string, details?: string): Error; } interface Error { - error: string; + error: string | number; reason?: string; details?: string; }