ref(TS) Changes types to interfaces (#13141)

This commit is contained in:
Robert Pintilii
2023-04-03 11:09:50 +03:00
committed by GitHub
parent f1ad9dc2e0
commit 6afb7ba9a6
48 changed files with 166 additions and 214 deletions

View File

@@ -134,7 +134,7 @@ interface IProps extends WithTranslation {
/**
* The type of the React {@code Component} state of {@link FeedbackDialog}.
*/
type State = {
interface IState {
/**
* The currently entered feedback message.
@@ -153,7 +153,7 @@ type State = {
* indexed so subtract one to map with SCORES.
*/
score: number;
};
}
/**
* A React {@code Component} for displaying a dialog to rate the current
@@ -162,7 +162,7 @@ type State = {
*
* @augments Component
*/
class FeedbackDialog extends Component<IProps, State> {
class FeedbackDialog extends Component<IProps, IState> {
/**
* An array of objects with click handlers for each of the scores listed in
* the constant SCORES. This pattern is used for binding event handlers only