Skip to content

Commit

Permalink
Revert back README.md and fix type definition for default export
Browse files Browse the repository at this point in the history
  • Loading branch information
supertong committed Feb 26, 2018
1 parent db66214 commit 112f535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -27,7 +27,7 @@ First, you need to validate your payload with `ajv`. If it's invalid then you ca

```js
import Ajv from 'ajv';
import * as betterAjvErrors from 'better-ajv-errors';
import betterAjvErrors from 'better-ajv-errors';
// const Ajv = require('ajv');
// const betterAjvErrors = require('better-ajv-errors');

Expand Down
2 changes: 1 addition & 1 deletion typings.d.ts
Expand Up @@ -2,7 +2,7 @@ import { ErrorObject } from 'ajv';

declare var betterAjvErrors: betterAjvErrors.IBetterAjvErrors;

export = betterAjvErrors;
export default betterAjvErrors;
export as namespace betterAjvErrors;

declare namespace betterAjvErrors {
Expand Down

0 comments on commit 112f535

Please sign in to comment.