Skip to content

Commit

Permalink
chore: remove unnecessary node16 interoperability
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanKovacic committed Oct 19, 2023
1 parent 6bf35de commit de3a629
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions types/single-spa-react.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,15 @@ declare function singleSpaReact<ExtraProps = {}>(
opts: SingleSpaReactOpts<ExtraProps & AppProps>
): ReactAppOrParcel<ExtraProps>;

declare namespace singleSpaReact {
/**
* Prevents typescript from requiring accessing the default export with ".default", which is not required.
* For more information see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/MissingExportEquals.md
*/
const _default: typeof singleSpaReact;
export { _default as default };
export = singleSpaReact;

declare namespace singleSpaReact {
export {
SingleSpaContext,
SingleSpaReactOpts,
ReactAppOrParcel,
DeprecatedRenderTypes,
LegacyRenderType,
RenderType,
SingleSpaReactOpts,
ReactAppOrParcel,
};
}

export = singleSpaReact;

0 comments on commit de3a629

Please sign in to comment.