Skip to content

Commit f1cf97f

Browse files
committed
Replaced any with unknown
1 parent a0ad1c2 commit f1cf97f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DataSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class DataSource extends DataSourceApi<MyQuery> {
100100
});
101101
}
102102

103-
async restRequest<T>(api_url: string, data: any): Promise<FetchResponse<ResponseData<T>>> {
103+
async restRequest<T>(api_url: string, data: unknown): Promise<FetchResponse<ResponseData<T>>> {
104104
return this.cmkRequest<T>({
105105
method: 'POST',
106106
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },

src/graphspecs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { get } from 'lodash';
22
import { Context, MyQuery, Presentation } from './types';
3-
export const buildRequestBody = (data: any) => `request=${JSON.stringify(data)}`;
3+
export const buildRequestBody = (data: unknown) => `request=${JSON.stringify(data)}`;
44

55
interface CombinedGraphSpec {
66
graph_template: string;

0 commit comments

Comments
 (0)