Skip to content

Commit

Permalink
Fix type error TS2666: Exports and export assignments are not permitt…
Browse files Browse the repository at this point in the history
…ed in module augmentations. (#49)

Fixes typescript issue described below (see https://github.com/Microsoft/TypeScript-Handbook/blob/fa9e2be1024014fe923d44b1b69d315e8347e444/pages/Declaration%20Merging.md#module-augmentation) for more details

```
> tsc
node_modules/mdx-mermaid/index.d.ts:20:3 - error TS2666: Exports and export assignments are not permitted in module augmentations.

20   export = mdxmermaid
     ~~~~~~

Found 1 error.
```
  • Loading branch information
Ramy committed May 24, 2022
1 parent a5c15e8 commit 4b22995
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.d.ts
Expand Up @@ -16,6 +16,4 @@ declare module 'mdx-mermaid' {
export type Mermaid = typeof mMermaid
}
type mdxmermaid = typeof plugin

export = mdxmermaid
}

0 comments on commit 4b22995

Please sign in to comment.