Saiichi Shayan Hashimoto

Results 129 comments of Saiichi Shayan Hashimoto

Can you not use the same regex in `match-exported` in your `index.js` check? I can't imagine there'd be a case where there would be the `index.js` and that wouldn't be...

Is this a if-you-want-it-make-a-pr situation or a this-project-is-done situation?

Another implementation could use [`chrome.runtime.sendMessage`](https://developer.chrome.com/extensions/runtime#method-sendMessage) instead of `postMessage`. This would remove the necessity to deal with interfering messages from the webpage itself. This is a chrome extension only feature, though.

What can we do to help @DavidWells? It's unclear what the solution is here since it looks like the typescript files in this repo are generated.

> So you would have a single class, but export it twice with different types so that the programmer can choose what makes sense for them. e.g. Since you're not...

```tsx import { Analytics } from 'analytics'; import doNotTrackPlugin from 'analytics-plugin-do-not-track'; Analytics({ plugins: [doNotTrackPlugin()], //

Yeah so to use this library with the `analytics` library, it needs types.

Is there a way to export in the package: ```typescript declare module 'analytics-plugin-do-not-track' { import type { AnalyticsPlugin } from 'analytics'; export default function doNotTrackPlugin(): AnalyticsPlugin; } ``` Because that's...

`analytics` doesn't export its `AnalyticsPlugin`, so it's not really full types.