Skip to content

Commit

Permalink
docs: info about typedef-imports plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Jul 2, 2020
1 parent e564ce8 commit f943a41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,10 @@ Example configuration file with settings for both `default` and `better-docs` te

### typedef(import(...))

better-docs also has one extra plugin for handling typescript'like types imports like:
better-docs also has one extra plugin for handling typescript'like types imports like (it has to be one-liner):

```
/**
* @typedef {import('./some-other-file').ExportedType} ExportedType
*/
/** @typedef {import('./some-other-file').ExportedType} ExportedType */
```

It simply removes that from the code so JSDoc wont throw an error. In order to use it add this plugin to your plugins section:
Expand Down

0 comments on commit f943a41

Please sign in to comment.