Pick Platform Deployment MGMT from #166813 (#167360)

## Summary

We're breaking https://github.com/elastic/kibana/pull/166813 up into
smaller PRs in the interest of getting PRs through sooner for type
fixes. These are the changes for Platform Deployment Management.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Brad White 2023-09-27 05:17:11 -06:00 committed by GitHub
parent 7f796659a7
commit 3cec6e5ed5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -999,7 +999,7 @@ export default function ({
// will simulate autocomplete on 'GET /a/b/' with a filter by index
return {
tokenPath: context.urlTokenPath?.slice(0, -1),
predicate: (term: any) => term.meta === 'index',
predicate: (term: ReturnType<typeof addMetaToTermsList>[0]) => term.meta === 'index',
};
} else {
// will do nothing special