Make type definition for 'is-root' better
This commit is contained in:
committed by
GitHub
parent
fdcc994291
commit
a05c94437c
Vendored
+5
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user