Skip to content

Commit

Permalink
add typecript information regarding turndown-plugin-gfm (#11153)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Heino <[email protected]>
  • Loading branch information
moorage and personalizedrefrigerator authored Oct 11, 2024
1 parent b831525 commit 447e463
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/turndown-plugin-gfm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ var turndownService = new TurndownService()
turndownService.use(tables)
```

### Typescript

To use this in a typescript project, add this to a `declarations.d.ts` file, as described in https://www.npmjs.com/package/@joplin/turndown, and then add:

```ts
declare module "@joplin/turndown-plugin-gfm" {
export const gfm: any;
// Add other named exports if necessary
}
```

## License

turndown-plugin-gfm is copyright © 2017+ Dom Christie and released under the MIT license.

0 comments on commit 447e463

Please sign in to comment.