Skip to content

Commit 13ee935

Browse files
committed
fix types
1 parent ca7a441 commit 13ee935

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/static/helpers/fetchHelper.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('doFetch', () => {
141141
});
142142

143143
describe('transferParams', () => {
144-
const optionParams = {
144+
const optionParams: Record<string, unknown> = {
145145
// organizationId and siteId are not defined here
146146
id: 'id',
147147
inventoryIds: 'inventoryIds',

src/static/helpers/fetchHelper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ export type ParameterKey = {
8989
* @param options.paramKeys - Array of parameter keys to process
9090
*/
9191
export const transferParams = (options: {
92-
optionParams: Record<string, any>;
93-
configParams: Record<string, any>;
94-
queryParams: Record<string, any>;
95-
pathParams: Record<string, any>;
92+
optionParams: Record<string, unknown>;
93+
configParams: Record<string, unknown>;
94+
queryParams: Record<string, unknown>;
95+
pathParams: Record<string, unknown>;
9696
paramKeys: Array<ParameterKey>;
9797
requiredParamKeys: readonly string[];
9898
}): void => {

0 commit comments

Comments
 (0)