Skip to content

Allow BaseKey to be an array of numbers#7478

Open
777yash77 wants to merge 2 commits into
refinedev:mainfrom
777yash77:main
Open

Allow BaseKey to be an array of numbers#7478
777yash77 wants to merge 2 commits into
refinedev:mainfrom
777yash77:main

Conversation

@777yash77

@777yash77 777yash77 commented Jul 12, 2026

Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

BaseKey only supports string and number identifiers. Generated API models that represent identifiers as number[] are not compatible with the BaseKey type without explicit type casting.

What is the new behavior?

BaseKey now supports number[] identifiers in addition to string and number.

This improves compatibility with generated API models that represent identifiers as arrays of numbers.

Fixes #7403

Notes for reviewers

This change extends the existing BaseKey union type to support number[] identifiers as requested in #7403.

@changeset-bot

changeset-bot Bot commented Jul 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7128628

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

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

`BaseKey` now supports `number[]` identifiers for compatibility with generated API models that represent identifiers as arrays of numbers.
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