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"); diff --git a/restify/restify.d.ts b/restify/restify.d.ts index f3e5bc46e2..c7ee5b14a2 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -178,7 +178,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); }