1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-04 17:58:43 +09:00

Make type definition for 'is-root' better

This commit is contained in:
Acid Chicken (硫酸鶏) 2019-01-31 13:42:13 +09:00 committed by GitHub
parent fdcc994291
commit a05c94437c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}