Skip to content

Commit

Permalink
fix: TS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
foxeyes committed Jul 1, 2022
1 parent 2b75dab commit ed631f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
5 changes: 4 additions & 1 deletion blocks/CloudImageEditor/src/CloudEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { TabId } from './toolbar-constants.js';
import { viewerImageSrc } from './util.js';

export class CloudEditor extends Block {
init$ = initState(this);
init$ = {
...this.init$,
...initState(this),
};

/** @private */
_debouncedShowLoader = debounce(this._showLoader.bind(this), 300);
Expand Down
1 change: 0 additions & 1 deletion blocks/CloudImageEditor/src/EditorCropButtonControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function nextValue(operation, prev) {
return null;
}

/** @extends {EditorButtonControl<import('./CloudEditor.js').State>} */
export class EditorCropButtonControl extends EditorButtonControl {
initCallback() {
super.initCallback();
Expand Down
14 changes: 0 additions & 14 deletions blocks/CloudImageEditor/src/EditorFilterControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ import { FAKE_ORIGINAL_FILTER } from './EditorSlider.js';
import { COMMON_OPERATIONS, transformationsToOperations } from './lib/transformationUtils.js';
import { preloadImage } from './lib/preloadImage.js';

/**
* @typedef {{
* active: Boolean;
* title: String;
* icon: String;
* isOriginal: Boolean;
* iconSize: Number;
* 'on.click': () => void;
* }} State
*/

/** @typedef {State & Partial<import('./EditorToolbar.js').State & import('./CloudEditor.js').State>} EditorFilterControlState */

/** @extends {EditorButtonControl<EditorFilterControlState>} */
export class EditorFilterControl extends EditorButtonControl {
init$ = {
active: false,
Expand Down
1 change: 0 additions & 1 deletion blocks/CloudImageEditor/src/EditorOperationControl.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EditorButtonControl } from './EditorButtonControl.js';
import { COLOR_OPERATIONS_CONFIG } from './toolbar-constants.js';

/** @extends {EditorButtonControl<Partial<import('./EditorToolbar.js').State>>} */
export class EditorOperationControl extends EditorButtonControl {
/**
* @private
Expand Down

0 comments on commit ed631f8

Please sign in to comment.