You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/index.d.ts b/index.d.ts
index 6f57555090390e09a3b3a2e39bab037c995b47b9..beb73be29022bf20734057e38148282207f5fa2b 100644
--- a/index.d.ts+++ b/index.d.ts@@ -1,3 +1,4 @@
declare module 'emoji-regex' {
- export default function emojiRegex(): RegExp;+ function emojiRegex(): RegExp;+ export = emojiRegex;
}
It looks like it was changed by #89 for the index.mjs file but that then broke types for the index.js file. With split files like this, it should probably be defined directly inside those files as JSDoc instead if they're going to vary in typing like that.
I'm getting the following Intellisense error when using
require('emoji-regex')
Some context for how I'm using this:
This package works fine this way when actually being used. It just always shows this Typescript error.
The text was updated successfully, but these errors were encountered: