We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8765d commit cc07d6bCopy full SHA for cc07d6b
x-pack/legacy/plugins/epm/public/data.ts
@@ -4,7 +4,7 @@
4
* you may not use this file except in compliance with the Elastic License.
5
*/
6
7
-import { HttpHandler } from 'src/core/public';
+import { HttpFetchOptions, HttpHandler } from 'src/core/public';
8
import {
9
getCategoriesPath,
10
getFilePath,
@@ -23,7 +23,8 @@ import {
23
PackagesGroupedByStatus,
24
} from '../common/types';
25
26
-const defaultClient: HttpHandler = (path, options?) => fetch(path, options).then(res => res.json());
+const defaultClient: HttpHandler = (path: string, options?: HttpFetchOptions) =>
27
+ fetch(path, options).then(res => res.json());
28
29
let _fetch: HttpHandler = defaultClient;
30
0 commit comments