mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
21 lines
424 B
TypeScript
21 lines
424 B
TypeScript
export const NewLabelName = (v: string): string => `New label: ${v}`;
|
|
|
|
export const NewLabelValue = (v: string): string => `New value: ${v}`;
|
|
|
|
export interface OptionT {
|
|
label: string;
|
|
value: string;
|
|
wasCreated: boolean;
|
|
}
|
|
|
|
export interface MultiValueOptionT {
|
|
label: string;
|
|
value: string[];
|
|
}
|
|
|
|
export const StringToOption = (value: string): OptionT => ({
|
|
label: value,
|
|
value: value,
|
|
wasCreated: false,
|
|
});
|