Merge pull request #12736 from simonseyock/onsignature-return

OnSignatures return more specific type
This commit is contained in:
Tim Schaub
2021-09-10 08:33:47 -06:00
committed by GitHub
28 changed files with 73 additions and 75 deletions

View File

@@ -108,12 +108,12 @@ class DragAndDrop extends Interaction {
});
/***
* @type {DragAndDropOnSignature<import("../Observable").OnReturn>}
* @type {DragAndDropOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {DragAndDropOnSignature<import("../Observable").OnReturn>}
* @type {DragAndDropOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -123,12 +123,12 @@ class DragBox extends PointerInteraction {
super();
/***
* @type {DragBoxOnSignature<import("../Observable").OnReturn>}
* @type {DragBoxOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {DragBoxOnSignature<import("../Observable").OnReturn>}
* @type {DragBoxOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -204,12 +204,12 @@ class Draw extends PointerInteraction {
super(pointerOptions);
/***
* @type {DrawOnSignature<import("../Observable").OnReturn>}
* @type {DrawOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {DrawOnSignature<import("../Observable").OnReturn>}
* @type {DrawOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -103,12 +103,12 @@ class Extent extends PointerInteraction {
super(/** @type {import("./Pointer.js").Options} */ (options));
/***
* @type {ExtentOnSignature<import("../Observable.js").OnReturn>}
* @type {ExtentOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {ExtentOnSignature<import("../Observable.js").OnReturn>}
* @type {ExtentOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -46,12 +46,12 @@ class Interaction extends BaseObject {
super();
/***
* @type {InteractionOnSignature<import("../Observable.js").OnReturn>}
* @type {InteractionOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {InteractionOnSignature<import("../Observable.js").OnReturn>}
* @type {InteractionOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -203,12 +203,12 @@ class Modify extends PointerInteraction {
super(/** @type {import("./Pointer.js").Options} */ (options));
/***
* @type {ModifyOnSignature<import("../Observable.js").OnReturn>}
* @type {ModifyOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {ModifyOnSignature<import("../Observable.js").OnReturn>}
* @type {ModifyOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -167,12 +167,12 @@ class Select extends Interaction {
super();
/***
* @type {SelectOnSignature<import("../Observable.js").OnReturn>}
* @type {SelectOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {SelectOnSignature<import("../Observable.js").OnReturn>}
* @type {SelectOnSignature<import("../events").EventsKey>}
*/
this.once;

View File

@@ -140,12 +140,12 @@ class Translate extends PointerInteraction {
super(/** @type {import("./Pointer.js").Options} */ (options));
/***
* @type {TranslateOnSignature<import("../Observable.js").OnReturn>}
* @type {TranslateOnSignature<import("../events").EventsKey>}
*/
this.on;
/***
* @type {TranslateOnSignature<import("../Observable.js").OnReturn>}
* @type {TranslateOnSignature<import("../events").EventsKey>}
*/
this.once;