Skip to content

Commit

Permalink
Use ES-style export in TypeScript file
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed May 13, 2022
1 parent e5b9330 commit 5c1541c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ declare class OrderedMap<T = any> {

type MapLike<T = any> = Record<string, T> | OrderedMap<T>

export = OrderedMap
export default OrderedMap

3 comments on commit 5c1541c

@tarangpandya
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marijnh - This change has opened up this isssue again - #9. It had broke our build.

@marijnh
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, see #11 . I need to use this from an ES module, and thus need the types to work with that, somehow.

@upendramanve
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marijnh this change has broke our build too.

Please sign in to comment.