From 90dd6ead84d4bfe115457c61c47c72ff20d7d049 Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Wed, 12 Mar 2014 11:49:04 +0000 Subject: [PATCH 1/2] Fix typo on restify type definition InvalidArgu**e**mentError => InvalidArgumentError --- restify/restify.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restify/restify.d.ts b/restify/restify.d.ts index 2afacc520f..2b447d11b3 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -167,7 +167,7 @@ declare module "restify" { export function createClient(options?: ClientOptions): HttpClient; export class ConflictError { constructor(message?: any); } - export class InvalidArguementError { constructor(message?: any); } + export class InvalidArgumentError { constructor(message?: any); } export class RestError { constructor(message?: any); } export class BadDigestError { constructor(message: any); } export class BadMethodError { constructor(message: any); } From 418438f064aa3a2b8b9e13a05c990b24ba947230 Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Sat, 15 Mar 2014 13:12:19 +0100 Subject: [PATCH 2/2] Fix typo on test --- restify/restify-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restify/restify-tests.ts b/restify/restify-tests.ts index 79a56f578c..329f1e8c3d 100644 --- a/restify/restify-tests.ts +++ b/restify/restify-tests.ts @@ -98,7 +98,7 @@ server.get( /(.*)/, send); server.head(/(.*)/, send); new restify.ConflictError("test"); -new restify.InvalidArguementError("message"); +new restify.InvalidArgumentError("message"); new restify.RestError("message"); new restify.BadDigestError("message"); new restify.BadMethodError("message");