@aptly-as/types
Version:
Aptly types and enums
20 lines (19 loc) • 510 B
TypeScript
import { AptlyFieldType } from '../enums/index.js';
export type AptlyDraftJS = string;
export type AptlyMarkdown = string;
export interface AptlyField<L = string> {
type: AptlyFieldType;
label: L;
placeholder?: string;
required?: boolean;
pattern?: string;
autoComplete?: string;
disabled?: boolean;
multiple?: boolean;
autoFocus?: boolean;
options: AptlyFieldOption[];
}
export interface AptlyFieldOption<V extends string = string> {
value: V;
label: string;
}