-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Typescript to the latest version #32063
Changes from 6 commits
5052198
bc26cd3
a926a2f
e43128c
838d1bf
631fbd2
e27beb5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ export const withStateFromLocation = <StateInLocation extends {}>({ | |
const stateFromLocation = mapLocationToState(location); | ||
|
||
return ( | ||
// @ts-ignore | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably author could help with this error
|
||
<WrappedComponent | ||
{...otherProps} | ||
{...stateFromLocation} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,19 +106,21 @@ class SpacesMenuUI extends Component<Props, State> { | |
const { intl } = this.props; | ||
return ( | ||
<div key="manageSpacesSearchField" className="spcMenu__searchFieldWrapper"> | ||
<EuiFieldSearch | ||
placeholder={intl.formatMessage({ | ||
id: 'xpack.spaces.navControl.spacesMenu.findSpacePlaceholder', | ||
defaultMessage: 'Find a space', | ||
})} | ||
incremental={true} | ||
// FIXME needs updated typedef | ||
{ | ||
// @ts-ignore | ||
onSearch={this.onSearch} | ||
onKeyDown={this.onSearchKeyDown} | ||
onFocus={this.onSearchFocus} | ||
compressed | ||
/> | ||
<EuiFieldSearch | ||
placeholder={intl.formatMessage({ | ||
id: 'xpack.spaces.navControl.spacesMenu.findSpacePlaceholder', | ||
defaultMessage: 'Find a space', | ||
})} | ||
incremental={true} | ||
// FIXME needs updated typedef | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We used to be able to put the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kobelb There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not finding any alternatives at this point in time, but it does eliminate the targeting ignoring that we used to be able to perform, which means we really shouldn't be relying on ts-ignore in these situations. I'll open a PR to fix the type defs in EUI and get rid of these in a subsequent PR. |
||
onSearch={this.onSearch} | ||
onKeyDown={this.onSearchKeyDown} | ||
onFocus={this.onSearchFocus} | ||
compressed | ||
/> | ||
} | ||
</div> | ||
); | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here callback is defined as
private closePopover = (type: string, from?: string, to?: string) => {
but
closePopover
in<EuiPopover
doesn't pass any arguments. tried to fix it with making all params optionalbut it leads to other errors in this file, so suppressed for now