From 18d941bfe0513cf8750fc4ba39feda337bb186a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wang=20D=C3=A0p=C3=A9ng?= Date: Wed, 16 May 2018 19:24:05 +0800 Subject: [PATCH 1/2] Update http-assert assert definition `assert` should support `assert(value, 500, { toast: 'custom error message' })` --- types/http-assert/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/http-assert/index.d.ts b/types/http-assert/index.d.ts index aac93be123..37609bffda 100644 --- a/types/http-assert/index.d.ts +++ b/types/http-assert/index.d.ts @@ -10,6 +10,7 @@ * @param opts custom properties to attach to the error object */ declare function assert(value: any, status?: number, msg?: string, opts?: {}): void; +declare function assert(value: any, status?: number, opts?: {}): void; declare namespace assert { /** From 5f5b3f1cb0d1fa587c097eeee106983f807972d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wang=20D=C3=A0p=C3=A9ng?= Date: Wed, 16 May 2018 19:30:06 +0800 Subject: [PATCH 2/2] Update http-assert version --- types/http-assert/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/http-assert/index.d.ts b/types/http-assert/index.d.ts index 37609bffda..e48d69fa59 100644 --- a/types/http-assert/index.d.ts +++ b/types/http-assert/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for http-assert 1.2 +// Type definitions for http-assert 1.3 // Project: https://github.com/jshttp/http-assert // Definitions by: jKey Lu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped