generic KeyValue and LabelValue
This commit is contained in:
@ -69,12 +69,12 @@ export enum ImageType {
|
|||||||
PIXELATED = "ir-pixelated"
|
PIXELATED = "ir-pixelated"
|
||||||
}
|
}
|
||||||
|
|
||||||
export type KeyValue<T> = {
|
export type KeyValue<V, K = string> = {
|
||||||
key: string;
|
key: K;
|
||||||
value: T;
|
value: V;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LabelValue<T> = {
|
export type LabelValue<L, V = string> = {
|
||||||
label: string;
|
label: L;
|
||||||
value: T;
|
value: V;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user