Skip to content

Commit

Permalink
Updated info about import (#549)
Browse files Browse the repository at this point in the history
There is no default import, neither named import, so this could help.
  • Loading branch information
crudo committed Mar 7, 2021
1 parent 22d88da commit af84b47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -38,6 +38,12 @@ npm install express-openapi-validator
const OpenApiValidator = require('express-openapi-validator');
```

or

```javascript
import * as OpenApiValidator from 'express-openapi-validator';
```

2. Install the middleware

```javascript
Expand Down

0 comments on commit af84b47

Please sign in to comment.