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] 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 { /**