mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user