From b5328a7049cf07e4c4d8a9211d26080b4a5ef231 Mon Sep 17 00:00:00 2001 From: Jessica Date: Sun, 17 Feb 2019 01:41:00 +0900 Subject: [PATCH] It's not actually wrong, just misleading --- types/babel__core/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/babel__core/index.d.ts b/types/babel__core/index.d.ts index 7f03a7585a..3875d40d71 100644 --- a/types/babel__core/index.d.ts +++ b/types/babel__core/index.d.ts @@ -671,8 +671,9 @@ export interface EnvFunction { * @returns `true` if the `envName` is `===` any of the given strings */ (envName: string | ReadonlyArray): boolean; - // the official documentation is completely wrong for this one... + // the official documentation is misleading for this one... // this just passes the callback to `cache.using` but with an additional argument. + // it returns its result instead of necessarily returning a boolean. (envCallback: (envName: NonNullable) => T): T; }