fix(components): declare ui prop with PartialString when arrays in theme slots

This commit is contained in:
Benjamin Canac
2024-07-02 15:02:29 +02:00
parent 52146dc260
commit 5cc4457a74
8 changed files with 18 additions and 12 deletions

View File

@@ -12,3 +12,7 @@ export type GetObjectField<MaybeObject, Key extends string> = MaybeObject extend
export type AcceptableValue = string | number | boolean | Record<string, any>
export type ArrayOrWrapped<T> = T extends any[] ? T : Array<T>
export type PartialString<T> = {
[K in keyof T]?: string
}