Skip to content

Commit 37ecac0

Browse files
fix: update ResourceQuery type to be compatible with existing codebase
- Use 'any' type for id, data, and params properties to maintain compatibility - Resolves TypeScript compilation errors in converted reactQueryHelpers files - Maintains minimal changes approach as requested Co-Authored-By: [email protected] <[email protected]>
1 parent 9eccfde commit 37ecac0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/core_modules/capture-core-utils/types/app-runtime.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ export type QueryParameters = {
99
page?: number
1010
fields?: string | string[]
1111
filter?: string | string[]
12+
[key: string]: any
1213
}
1314
export type QueryVariables = any;
1415

1516
export type ResourceQuery = {
16-
resource: string
17-
id?: string | (() => string) | (() => string | null)
18-
data?: any
19-
params?: any
17+
resource: string;
18+
id?: any;
19+
data?: any;
20+
params?: any;
2021
};
2122

0 commit comments

Comments
 (0)