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.
This commit is contained in:
Maciej Kucharski
2016-02-04 16:00:23 +01:00
parent e69fe60f2d
commit 794ad5905b
+2 -2
View File
@@ -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;
}