Make eslint happy

This commit is contained in:
Dariusz Niemczyk 2021-08-24 14:23:08 +02:00
parent 41d444d7d7
commit ab4934ba6c
No known key found for this signature in database
GPG key ID: 3E8DC619E3C59A05
2 changed files with 17 additions and 3 deletions

View file

@ -40,7 +40,12 @@ class CollapseItem extends ResizeItem<ICollapseConfig> {
}
export default class CollapseDistributor extends FixedDistributor<ICollapseConfig, CollapseItem> {
static createItem(resizeHandle: HTMLDivElement, resizer: Resizer<ICollapseConfig>, sizer: Sizer, container?: HTMLElement): CollapseItem {
static createItem(
resizeHandle: HTMLDivElement,
resizer: Resizer<ICollapseConfig>,
sizer: Sizer,
container?: HTMLElement,
): CollapseItem {
return new CollapseItem(resizeHandle, resizer, sizer, container);
}

View file

@ -47,8 +47,17 @@ export default class Resizer<C extends IConfig = IConfig> {
public container: HTMLElement,
private readonly distributorCtor: {
new(item: ResizeItem): FixedDistributor<C, any>;
createItem(resizeHandle: HTMLDivElement, resizer: Resizer, sizer: Sizer, container: HTMLElement): ResizeItem;
createSizer(containerElement: HTMLElement, vertical: boolean, reverse: boolean): Sizer;
createItem(
resizeHandle: HTMLDivElement,
resizer: Resizer,
sizer: Sizer,
container: HTMLElement
): ResizeItem;
createSizer(
containerElement: HTMLElement,
vertical: boolean,
reverse: boolean
): Sizer;
},
public readonly config?: C,
) {