Skip to content

BridgeJS: Fix missing TypeScript interface definitions for imported types #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 15, 2025

Conversation

kateinoigakukun
Copy link
Member

Fixes TypeScript reference errors by generating interface definitions for imported types like TS2Skeleton.

…ypes

Previously, BridgeJS generated imports referencing types (e.g., createTS2Skeleton(): TS2Skeleton)
without generating the corresponding TypeScript interface definitions, causing reference errors.

This fix adds generateImportedTypeDefinitions() function to generate export interface declarations
for imported types with their methods and properties, ensuring TypeScript definitions are complete.

Added test cases to prevent regression with multiple imported types scenarios.
@kateinoigakukun kateinoigakukun changed the title Fix missing TypeScript interface definitions for imported types BridgeJS: Fix missing TypeScript interface definitions for imported types Aug 15, 2025
@kateinoigakukun kateinoigakukun merged commit d8523db into main Aug 15, 2025
9 checks passed
@kateinoigakukun kateinoigakukun deleted the fix-imported-types-reference-error branch August 15, 2025 17:14
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