Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Jun 4, 2020
1 parent 82f4c13 commit 4f7c4df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ export const exportSelectedTimeline: ExportSelectedData = async ({
signal,
}): Promise<Blob> => {
const body = ids.length > 0 ? JSON.stringify({ ids }) : undefined;
const response = await KibanaServices.get().http.fetch<Blob>(`${TIMELINE_EXPORT_URL}`, {
const response = await KibanaServices.get().http.fetch<{ body: Blob }>(`${TIMELINE_EXPORT_URL}`, {
method: 'POST',
body,
query: {
file_name: filename,
},
});

return response.body!;
return response.body;
};

export const getDraftTimeline = async ({
Expand Down

0 comments on commit 4f7c4df

Please sign in to comment.