Skip to content

Commit cc07d6b

Browse files
author
John Schulz
committed
Update types for data fetch client in public/data
1 parent 0b8765d commit cc07d6b

File tree

1 file changed

+3
-2
lines changed
  • x-pack/legacy/plugins/epm/public

1 file changed

+3
-2
lines changed

x-pack/legacy/plugins/epm/public/data.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { HttpHandler } from 'src/core/public';
7+
import { HttpFetchOptions, HttpHandler } from 'src/core/public';
88
import {
99
getCategoriesPath,
1010
getFilePath,
@@ -23,7 +23,8 @@ import {
2323
PackagesGroupedByStatus,
2424
} from '../common/types';
2525

26-
const defaultClient: HttpHandler = (path, options?) => fetch(path, options).then(res => res.json());
26+
const defaultClient: HttpHandler = (path: string, options?: HttpFetchOptions) =>
27+
fetch(path, options).then(res => res.json());
2728

2829
let _fetch: HttpHandler = defaultClient;
2930

0 commit comments

Comments
 (0)