Merge pull request #12736 from simonseyock/onsignature-return
OnSignatures return more specific type
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user