Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better types for more timeouts #14934

Merged
merged 1 commit into from Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ol/Map.js
Expand Up @@ -294,7 +294,7 @@ class Map extends BaseObject {

/**
* @private
* @type {*}
* @type {ReturnType<typeof setTimeout>}
*/
this.postRenderTimeoutHandle_;

Expand Down
2 changes: 1 addition & 1 deletion src/ol/MapBrowserEventHandler.js
Expand Up @@ -26,7 +26,7 @@ class MapBrowserEventHandler extends Target {
this.map_ = map;

/**
* @type {any}
* @type {ReturnType<typeof setTimeout>}
* @private
*/
this.clickTimeoutId_;
Expand Down
2 changes: 1 addition & 1 deletion src/ol/interaction/Draw.js
Expand Up @@ -625,7 +625,7 @@ class Draw extends PointerInteraction {
this.downPx_ = null;

/**
* @type {?}
* @type {ReturnType<typeof setTimeout>}
* @private
*/
this.downTimeout_;
Expand Down
6 changes: 4 additions & 2 deletions src/ol/interaction/MouseWheelZoom.js
Expand Up @@ -116,7 +116,7 @@ class MouseWheelZoom extends Interaction {

/**
* @private
* @type {?}
* @type {ReturnType<typeof setTimeout>}
*/
this.timeoutId_;

Expand All @@ -129,12 +129,14 @@ class MouseWheelZoom extends Interaction {
/**
* Trackpad events separated by this delay will be considered separate
* interactions.
* @private
* @type {number}
*/
this.trackpadEventGap_ = 400;

/**
* @type {?}
* @private
* @type {ReturnType<typeof setTimeout>}
*/
this.trackpadTimeoutId_;

Expand Down