Skip to content

Commit

Permalink
Fix the typings to enable TS import (atlassian#20)
Browse files Browse the repository at this point in the history
After the change to typings, it's now impossible to `import * as BAE` in Typescript, but it is the only way to use the library.

With the current version `import BAE from ...` TS is happy, but after compilation to JS the import is not a constructor (tsc compiles the default import in a different way).
  • Loading branch information
Thinkscape authored and torifat committed Apr 9, 2018
1 parent 584c603 commit d59445f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ErrorObject } from 'ajv';

declare var betterAjvErrors: betterAjvErrors.IBetterAjvErrors;

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

declare namespace betterAjvErrors {
Expand Down

0 comments on commit d59445f

Please sign in to comment.