UNPKG

@highloop/feedback-internal

Version:

51 lines (46 loc) 857 B
export interface IOption { id: string; name: string; emoji: { path: string; }; } export 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; }