Enable strictFunctionTypes (#11201)
This commit is contained in:
parent
40de66424d
commit
4207d182cd
30 changed files with 245 additions and 258 deletions
|
@ -28,7 +28,7 @@ import WidgetUtils from "../../../utils/WidgetUtils";
|
|||
import WidgetEchoStore from "../../../stores/WidgetEchoStore";
|
||||
import ResizeNotifier from "../../../utils/ResizeNotifier";
|
||||
import ResizeHandle from "../elements/ResizeHandle";
|
||||
import Resizer from "../../../resizer/resizer";
|
||||
import Resizer, { IConfig } from "../../../resizer/resizer";
|
||||
import PercentageDistributor from "../../../resizer/distributors/percentage";
|
||||
import { Container, WidgetLayoutStore } from "../../../stores/widgets/WidgetLayoutStore";
|
||||
import { clamp, percentageOf, percentageWithin } from "../../../utils/numbers";
|
||||
|
@ -58,7 +58,7 @@ interface IState {
|
|||
export default class AppsDrawer extends React.Component<IProps, IState> {
|
||||
private unmounted = false;
|
||||
private resizeContainer?: HTMLDivElement;
|
||||
private resizer: Resizer;
|
||||
private resizer: Resizer<IConfig>;
|
||||
private dispatcherRef?: string;
|
||||
public static defaultProps: Partial<IProps> = {
|
||||
showApps: true,
|
||||
|
@ -104,7 +104,7 @@ export default class AppsDrawer extends React.Component<IProps, IState> {
|
|||
}
|
||||
};
|
||||
|
||||
private createResizer(): Resizer {
|
||||
private createResizer(): Resizer<IConfig> {
|
||||
// This is the horizontal one, changing the distribution of the width between the app tiles
|
||||
// (ie. a vertical resize handle because, the handle itself is vertical...)
|
||||
const classNames = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue