@highloop/feedback-internal
Version:
44 lines (43 loc) • 882 B
TypeScript
export interface IOption {
id: string;
name: string;
emoji: {
path: string;
};
}
export declare type IWidget = {
question: string;
id: string;
} & ({
type: 'stars';
stars: number;
} | {
type: 'options';
optionsOrder: string[];
options: IOption[];
});
export interface ITheme {
background: string;
headerBackground: string;
headerBorder: string;
foreground: string;
accent1: string;
accent2: string;
textareaBackground: string;
textareaBorder: string;
shadow: string;
primary: string;
primaryTextHover: string;
primaryText: string;
star: string;
}
export interface IFlags {
poweredBy: boolean;
screenshot: boolean;
autoSubmit: boolean;
}
export interface IData {
widget: IWidget;
theme: ITheme;
flags: IFlags;
}