We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5499c36 + 89ab548 commit 8d66a58Copy full SHA for 8d66a58
docs/problems/MissingExportEquals.md
@@ -53,7 +53,8 @@ This merging namespace can also be used to declare the `default` property when t
53
```ts
54
declare function Whatever(props: Whatever.WhateverProps): void;
55
declare namespace Whatever {
56
- declare const _default: typeof Whatever;
+ // using `import =` syntax ensures the CJS-default-import continues to work as a namespace
57
+ import _default = Whatever;
58
export { _default as default };
59
60
export interface WhateverProps {
0 commit comments