Skip to content

未解決型は問い合わせをエラーで返す#26

Merged
omochi merged 1 commit intomainfrom
forbid-unresolved
Nov 4, 2022
Merged

未解決型は問い合わせをエラーで返す#26
omochi merged 1 commit intomainfrom
forbid-unresolved

Conversation

@omochi
Copy link
Owner

@omochi omochi commented Nov 4, 2022

#23 の対応

コード生成において、
解決可能な型であっても、未解決な型を使用したい状況があります。
しかしC2TSが未解決な型を適当な扱いで許容することが、
そのような状況で不便なインターフェースとなっていました。

この変更により、未解決な型は例外を投げてトランスパイルできないようにします。

ユーザーは、

  1. その型の定義を含むソースコードも読み込むか、
  2. TypeMapでその型の変換を定義する
    事が必要になります。

@omochi omochi merged commit 08d35d1 into main Nov 4, 2022
@omochi omochi deleted the forbid-unresolved branch November 4, 2022 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant