Skip to content

Commit

Permalink
export ToasterProps type (#400)
Browse files Browse the repository at this point in the history
For Sonner to be bundled in other libraries, we need to export `ToasterProps`.

This fixes following error for library authors:
```
TS4023: Exported variable 'X' has or is using name 'ToasterProps' from external module './node_modules/sonner/dist/index' but cannot be named
```
  • Loading branch information
Sam-Apostel committed May 23, 2024
1 parent 90b4570 commit 35610be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -722,4 +722,4 @@ const Toaster = (props: ToasterProps) => {
</section>
);
};
export { toast, Toaster, type ExternalToast, type ToastT };
export { toast, Toaster, type ExternalToast, type ToastT, type ToasterProps };

0 comments on commit 35610be

Please sign in to comment.