Skip to content

Commit

Permalink
Workaround weird type issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Oct 2, 2020
1 parent 726f6ba commit 0fb4615
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default function ({ getService }: FtrProviderContext) {
async function getRawSavedObjectAttributes({ id, type }: SavedObject) {
const {
_source: { [type]: savedObject },
} = await es.get({
} = await es.get<Record<string, any>>({
id: generateRawID(id, type),
index: '.kibana',
});
} as any);

return savedObject;
}
Expand Down

0 comments on commit 0fb4615

Please sign in to comment.