From b54099def185892ea34da45fad1462edaed35cff Mon Sep 17 00:00:00 2001 From: s mz <69295615+smz202000@users.noreply.github.com> Date: Fri, 17 Jul 2026 15:50:57 +0800 Subject: [PATCH] fix(core): extend BaseKey type to support number[] for UUID compatibility 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 #7403 --- packages/core/src/contexts/data/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/contexts/data/types.ts b/packages/core/src/contexts/data/types.ts index 8b63bb716ba3f..73b89467f3374 100644 --- a/packages/core/src/contexts/data/types.ts +++ b/packages/core/src/contexts/data/types.ts @@ -5,7 +5,7 @@ export type Prettify = { [K in keyof T]: T[K]; } & {}; -export type BaseKey = string | number; +export type BaseKey = string | number | number[]; export type BaseRecord = { id?: BaseKey; [key: string]: any;