Skip to content

Commit

Permalink
fixup! fixup! feat: Stringify config data if it's an object
Browse files Browse the repository at this point in the history
  • Loading branch information
pitahorn committed May 3, 2024
1 parent bf56cf0 commit af497f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -24,7 +23,7 @@ export const buildQueryString = (config: QueryObject, configKey?: string): strin
}

return pairs.join('&');
}
};

export const buildMessageHandler = (handlers: FintocWidgetEventHandlers) => (
(event: WebViewMessageEvent) => {
Expand Down

0 comments on commit af497f5

Please sign in to comment.