Skip to content

Commit

Permalink
fix: TypeScript exports (#16)
Browse files Browse the repository at this point in the history
The package uses `module.exports =` to define exports. The correct way
to write types for this is using `export =`. The old `export default`
syntax described the property `module.exports.default` instead.
  • Loading branch information
remcohaszing authored Nov 6, 2024
1 parent a8713ae commit 0a78faf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/estree-to-babel.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {ParseResult, types} from '@putout/babel';

export default function toBabel(ast: types.Node, src?: string): ParseResult<types.File>;
declare function toBabel(ast: types.Node, src?: string): ParseResult<types.File>;

export = toBabel;

0 comments on commit 0a78faf

Please sign in to comment.