1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/interfaces/context.ts
olav cb8add5c30 feat: add context value descriptions (#874)
* feat: add context value descriptions

* refcator: use ConditionallyRender for ...conditional render

* refactor: fix context form enter behaviour

* refactor: decrease margin between inputs

* refactor: show error on missing value

* refactor: disable add button on error

* refactor: avoid clearing value error on name focus
2022-04-19 15:20:01 +02:00

14 lines
273 B
TypeScript

export interface IUnleashContextDefinition {
name: string;
description: string;
createdAt: string;
sortOrder: number;
stickiness: boolean;
legalValues?: ILegalValue[];
}
export interface ILegalValue {
value: string;
description?: string;
}