Skip to content

Commit

Permalink
parseQueryString should return a record
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Sep 9, 2024
1 parent 76e8fd7 commit f5669f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/corelib/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,7 @@ interface PostToUrlOptions {
target?: string;
params: any;
}
declare function parseQueryString(s?: string): {};
declare function parseQueryString(s?: string): Record<string, string>;
declare function postToService(options: PostToServiceOptions): void;
declare function postToUrl(options: PostToUrlOptions): void;

Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/q/services-compat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface PostToUrlOptions {
params: any;
}

export function parseQueryString(s?: string): {} {
export function parseQueryString(s?: string): Record<string, string> {
let qs: string;
if (s === undefined)
qs = location.search.substring(1, location.search.length);
Expand Down

0 comments on commit f5669f5

Please sign in to comment.