From f46a2f87d855868daa66b8f01ac32e8a25964be6 Mon Sep 17 00:00:00 2001 From: Kasper Isager Date: Wed, 20 Jun 2018 08:39:26 +0200 Subject: [PATCH] Declare `ignore` as default export This fixes compatibility with TypeScript used in combination with ESM. Currently, the only way to import `ignore` in TypeScript is through the `import * as X from Y` construct, even though `ignore` is actually a default export through the use of `module.exports = X`. When used in combination with ESM, this would lead to `ignore` being imported as an object with a `default` property. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b0827d3..fa27854 100644 --- a/index.d.ts +++ b/index.d.ts @@ -38,4 +38,4 @@ interface Ignore { */ declare function ignore(): Ignore -export = ignore +export default ignore