mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Management team] Fix the type check errors (#167133)
## Summary This PR fixes the errors of the type checkers on some of the Management team's plugins. The errors were identified by running the command `node scripts/type_check --project <path-to-tsconfig.json>` with these files as suggested by the Operations team: - ./packages/kbn-generate-console-definitions/tsconfig.json - ./src/plugins/console/tsconfig.json - ./packages/kbn-management/settings/components/field_row/tsconfig.json
This commit is contained in:
parent
302ec109ce
commit
090569bb45
3 changed files with 6 additions and 5 deletions
|
@ -16,7 +16,7 @@ const IMAGE = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8
|
||||||
describe('ChangeImageLink', () => {
|
describe('ChangeImageLink', () => {
|
||||||
const defaultProps: ChangeImageLinkProps = {
|
const defaultProps: ChangeImageLinkProps = {
|
||||||
field: {
|
field: {
|
||||||
name: 'test',
|
id: 'test',
|
||||||
type: 'image',
|
type: 'image',
|
||||||
ariaAttributes: {
|
ariaAttributes: {
|
||||||
ariaLabel: 'test',
|
ariaLabel: 'test',
|
||||||
|
|
|
@ -7,4 +7,5 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export { FieldInputFooter, type FieldInputFooterProps } from './input_footer';
|
export { FieldInputFooter, type FieldInputFooterProps } from './input_footer';
|
||||||
export { InputResetLink, type FieldResetLinkProps } from './reset_link';
|
export { InputResetLink } from './reset_link';
|
||||||
|
export type { InputResetLinkProps } from './reset_link';
|
||||||
|
|
|
@ -998,12 +998,12 @@ export default function ({
|
||||||
) {
|
) {
|
||||||
// will simulate autocomplete on 'GET /a/b/' with a filter by index
|
// will simulate autocomplete on 'GET /a/b/' with a filter by index
|
||||||
return {
|
return {
|
||||||
tokenPath: context.urlTokenPath.slice(0, -1),
|
tokenPath: context.urlTokenPath?.slice(0, -1),
|
||||||
predicate: (term) => term.meta === 'index',
|
predicate: (term: any) => term.meta === 'index',
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
// will do nothing special
|
// will do nothing special
|
||||||
return { tokenPath: context.urlTokenPath, predicate: (term) => true };
|
return { tokenPath: context.urlTokenPath, predicate: () => true };
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue