From f5669f5c6bc94909ee0cc90fbe20017a60f0ea87 Mon Sep 17 00:00:00 2001 From: volkanceylan Date: Mon, 9 Sep 2024 20:52:41 +0300 Subject: [PATCH] parseQueryString should return a record --- packages/corelib/dist/index.d.ts | 2 +- packages/corelib/src/q/services-compat.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/corelib/dist/index.d.ts b/packages/corelib/dist/index.d.ts index 458c3ecd74..5dd4f3385a 100644 --- a/packages/corelib/dist/index.d.ts +++ b/packages/corelib/dist/index.d.ts @@ -2732,7 +2732,7 @@ interface PostToUrlOptions { target?: string; params: any; } -declare function parseQueryString(s?: string): {}; +declare function parseQueryString(s?: string): Record; declare function postToService(options: PostToServiceOptions): void; declare function postToUrl(options: PostToUrlOptions): void; diff --git a/packages/corelib/src/q/services-compat.tsx b/packages/corelib/src/q/services-compat.tsx index ba7525352b..10ad886619 100644 --- a/packages/corelib/src/q/services-compat.tsx +++ b/packages/corelib/src/q/services-compat.tsx @@ -20,7 +20,7 @@ export interface PostToUrlOptions { params: any; } -export function parseQueryString(s?: string): {} { +export function parseQueryString(s?: string): Record { let qs: string; if (s === undefined) qs = location.search.substring(1, location.search.length);