Skip to content

Conversation

@kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Feb 3, 2026

This PR adds support for TypeScript T | null and T | undefined in BridgeJS and simplifies the Optional / JSUndefinedOr implementation with a unified nullable model and centralized bridging.

Example

TypeScript (import):

function roundTripNumber(value: number | null): number | null;
function roundTripNumber(value: number | undefined): number | undefined;

Swift (generated):

  • number | nullOptional<Double>
  • number | undefinedJSUndefinedOr<Double>

Close #475

@kateinoigakukun kateinoigakukun force-pushed the katei/5e7d-bridgejs-import branch from eb818b6 to 51a7b37 Compare February 4, 2026 02:39
@kateinoigakukun kateinoigakukun force-pushed the katei/5e7d-bridgejs-import branch from 51a7b37 to 4667158 Compare February 4, 2026 04:35
@kateinoigakukun kateinoigakukun force-pushed the katei/5e7d-bridgejs-import branch from 4667158 to 6a230da Compare February 4, 2026 04:43
@kateinoigakukun kateinoigakukun changed the title BridgeJS: add optional/undefined runtime coverage BridgeJS: T | null and T | undefined support Feb 4, 2026
@kateinoigakukun kateinoigakukun added this to the BridgeJS MVP milestone Feb 4, 2026
@kateinoigakukun kateinoigakukun marked this pull request as ready for review February 4, 2026 05:39
@krodak krodak merged commit e55d927 into main Feb 4, 2026
11 checks passed
@krodak krodak deleted the katei/5e7d-bridgejs-import branch February 4, 2026 06:36
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.

[BridgeJS] Import T | null and T | undefined TS types as Swift Optional<T>

3 participants