Skip to content

[api] Add TupleTypeReference interface and StructuredType type#4540

Open
mrazauskas wants to merge 2 commits into
microsoft:mainfrom
mrazauskas:add-TupleTypeReference-and-StructuredType
Open

[api] Add TupleTypeReference interface and StructuredType type#4540
mrazauskas wants to merge 2 commits into
microsoft:mainfrom
mrazauskas:add-TupleTypeReference-and-StructuredType

Conversation

@mrazauskas

Copy link
Copy Markdown

Close #4499
Close #4539

This PR adds the missing TupleTypeReference interface and StructuredType type.

Signed-off-by: mrazauskas <tom@mrazauskas.de>
Copilot AI review requested due to automatic review settings July 6, 2026 04:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the native-preview TypeScript API surface to add missing type definitions requested in #4499 and #4539, specifically TupleTypeReference and StructuredType, for both the sync and async API variants.

Changes:

  • Add TupleTypeReference interface (sync + async) to model tuple type references.
  • Add StructuredType union type alias (sync + async) for TypeFlags.StructuredType narrowing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
_packages/native-preview/src/api/sync/types.ts Adds TupleTypeReference and StructuredType to the sync type definitions.
_packages/native-preview/src/api/async/types.ts Adds TupleTypeReference and StructuredType to the async type definitions (Promise-based).

Comment thread _packages/native-preview/src/api/sync/types.ts
Comment thread _packages/native-preview/src/api/async/types.ts
Signed-off-by: mrazauskas <tom@mrazauskas.de>
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.

Add StructuredType type to the API Add TupleTypeReference interface to the API

2 participants