1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-19 20:31:46 +02:00

add typecript information regarding turndown-plugin-gfm (#11153)

Co-authored-by: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com>
This commit is contained in:
Matthew Moore 2024-10-11 14:14:05 -07:00 committed by GitHub
parent b831525b20
commit 447e4638d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.