mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
21 lines
470 B
TypeScript
21 lines
470 B
TypeScript
|
import { CompiledPredicateFormula } from 'app/common/PredicateFormula';
|
||
|
|
||
|
export interface DropdownCondition {
|
||
|
text: string;
|
||
|
parsed: string;
|
||
|
}
|
||
|
|
||
|
export type DropdownConditionCompilationResult =
|
||
|
| DropdownConditionCompilationSuccess
|
||
|
| DropdownConditionCompilationFailure;
|
||
|
|
||
|
interface DropdownConditionCompilationSuccess {
|
||
|
kind: 'success';
|
||
|
result: CompiledPredicateFormula;
|
||
|
}
|
||
|
|
||
|
interface DropdownConditionCompilationFailure {
|
||
|
kind: 'failure';
|
||
|
error: string;
|
||
|
}
|