Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Conversation

@glureau
Copy link
Member

@glureau glureau commented Apr 19, 2022

A response to #20

Annotating a class with @KustomExport now requires the class to NOT expose types that are an instance of Exception (or its subclasses). If you do it, the compiler will report an error with the location of the wrong type and ask you to replace it with Throwable. Throwable are properly mapped to Error by KotlinJS (other subclasses like Exception are not mapped and provides a bad TS output).

@glureau glureau added the enhancement New feature or request label Apr 19, 2022
@glureau glureau added this to the 0.5.0 milestone Apr 19, 2022
@glureau glureau self-assigned this Apr 19, 2022
@glureau glureau merged commit 16e5cbe into master Apr 19, 2022
@glureau glureau deleted the remove_kustom_exceptions branch April 19, 2022 20:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants