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
There is no way (that I can think of) to reopen the namespace or any of the interfaces.
Local namespace/interface merging is not allowed with imports.
There is no way I can reopen a default export in a module augmentation.
As a result, I have to rewrite react-router so that I can make it augmentable because the original author did not think far ahead enough to support it.
The text was updated successfully, but these errors were encountered:
I should actually take back what I said in part - it is not so much that the author didn't think far enough ahead to support augmentations, but rather, that the module is available using a default export. The author wanted to export all of the types through the default export as well, but as mentioned above, there is no way to reopen default exports.
Let's take this file (
react-router/lib/Route.d.ts
):Let's say that I wanted to write a module augmentation for this.
There is no way (that I can think of) to reopen the namespace or any of the interfaces.
As a result, I have to rewrite
react-router
so that I can make it augmentable because the original author did not think far ahead enough to support it.The text was updated successfully, but these errors were encountered: