Typescript
이 문서는 typescript를 위한 serviceType에 대해 안내합니다.
declare global {
interface Window {
Bublitt: Bublitt;
}
}
interface Bublitt {
init: (c: BublittInitalProps) => void;
create: (q: BublittCreateProps) => void;
shutdown: () => void;
}
interface BublittInitalProps {
serviceName: string;
serviceKey: string;
}
interface BublittCreateProps {
title: string;
renderFloatingBadge: boolean;
titleColor?: string;
headerBackgroundColor?: string;
closeButtonColor?: string;
chatWidth?: number;
chatHeight?: number;
backgroundColor?: string;
bubbleBackgroundColor?: string;
bubbleTextColor?: string;
timeStampColor?: string;
agentBubbleBackgroundColor?: string;
agentTextColor?: string;
agentTimeStampColor?: string;
copyButtonBackgroundColor?: string; //
copyIconColor?: string; //
inputBackgroundColor?: string;
inputPlaceholderColor?: string;
inputPlaceholder?: string;
inputPlaceholderMaxLength?: number;
welcomeMessages?: string[];
}
export const Bublitt = window.Bublitt;
Last updated