diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 7b7add0..ad8c225 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -4,9 +4,8 @@ import { EVENT_MAP } from './constants'; const defaultHanlder = () => null; -type QueryValue = string | number | boolean | QueryObject; interface QueryObject { - [key: string]: QueryValue; + [key: string]: string | number | boolean | QueryObject; } export const buildQueryString = (config: QueryObject, configKey?: string): string => { @@ -24,7 +23,7 @@ export const buildQueryString = (config: QueryObject, configKey?: string): strin } return pairs.join('&'); -} +}; export const buildMessageHandler = (handlers: FintocWidgetEventHandlers) => ( (event: WebViewMessageEvent) => {