Skip to content

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