mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
25 lines
486 B
TypeScript
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;
|
|
}[];
|
|
};
|