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