Skip to content

fix(core): extend BaseKey type to support number[] for UUID compatibility - #7487

Open
smz202000 wants to merge 1 commit into
refinedev:mainfrom
smz202000:fix/basekey-uuid-support
Open

fix(core): extend BaseKey type to support number[] for UUID compatibility#7487
smz202000 wants to merge 1 commit into
refinedev:mainfrom
smz202000:fix/basekey-uuid-support

Conversation

@smz202000

Copy link
Copy Markdown

Description

UUID types from some OpenAPI generators use number[] (byte arrays) as their representation. Previously BaseKey only accepted string | number, forcing users to use type assertions when working with such UUID representations.

This change widens the BaseKey type to also accept number[].

Related Issue

Closes #7403

Type of change

  • Bug fix (non-breaking change that fixes an issue)

How Has This Been Tested?

This is a pure type-level change — widening a union type — so no runtime behavior is affected. TypeScript compilation succeeds with the widened type.

…lity

UUID types from some OpenAPI generators use number[] (byte arrays) as
their representation. Previously BaseKey only accepted string | number,
forcing users to use type assertions. This change widens the type to
also accept number[].

Closes refinedev#7403
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b54099d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

[BUG] BaseKey needs to support UUID

1 participant