Files
outline/shared/models/types.ts
T
2024-07-27 16:21:41 -04:00

25 lines
486 B
TypeScript

import { Primitive } from "utility-types";
export enum DataAttributeDataType {
String = "string",
Number = "number",
Boolean = "boolean",
List = "list",
}
export type DocumentDataAttribute = {
dataAttributeId: string;
value: Primitive;
updatedAt: string;
};
export type DataAttributeOptions = {
/** An icon to display next to the attribute. */
icon?: string;
/** Valid options for list data type. */
options?: {
value: string;
color?: string;
}[];
};