From 2140b410567d898ea7b281835e130893f5512027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Thu, 31 Jan 2019 13:42:13 +0900 Subject: [PATCH] Make type definition for 'is-root' better --- src/@types/is-root.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/@types/is-root.d.ts b/src/@types/is-root.d.ts index 45d5671bf..3905a16c8 100644 --- a/src/@types/is-root.d.ts +++ b/src/@types/is-root.d.ts @@ -1,5 +1,7 @@ -declare module 'is-root'; +declare module 'is-root' { + function isRoot(): boolean; -declare namespace isRoot { - export function isRoot(): boolean; + namespace isRoot {} // Hack + + export = isRoot; }