mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
fix(components): declare ui prop with PartialString when arrays in theme slots
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user