From 8e82e8a191e44e370a0f7242d85ed551915c545f Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Mon, 10 Dec 2018 10:51:38 +0900 Subject: [PATCH] Use type guard --- types/is-buffer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/is-buffer/index.d.ts b/types/is-buffer/index.d.ts index 3d5c2cdbc0..5dabcd1028 100644 --- a/types/is-buffer/index.d.ts +++ b/types/is-buffer/index.d.ts @@ -5,6 +5,6 @@ /// -declare function isBuffer(obj: any): boolean; +declare function isBuffer(obj: any): obj is Buffer; export = isBuffer;