Transformed types

Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
This commit is contained in:
Tim Schaub
2018-09-05 08:05:29 -06:00
parent f2aaaa19e1
commit ccfacc5ee6
239 changed files with 3999 additions and 3999 deletions

View File

@@ -57,7 +57,7 @@ const DEDUP_DIST = 25;
/**
* Handler for `mousedown`.
*
* @this {module:ol/pointer/MouseSource}
* @this {import("./MouseSource.js").default}
* @param {MouseEvent} inEvent The in event.
*/
function mousedown(inEvent) {
@@ -76,7 +76,7 @@ function mousedown(inEvent) {
/**
* Handler for `mousemove`.
*
* @this {module:ol/pointer/MouseSource}
* @this {import("./MouseSource.js").default}
* @param {MouseEvent} inEvent The in event.
*/
function mousemove(inEvent) {
@@ -89,7 +89,7 @@ function mousemove(inEvent) {
/**
* Handler for `mouseup`.
*
* @this {module:ol/pointer/MouseSource}
* @this {import("./MouseSource.js").default}
* @param {MouseEvent} inEvent The in event.
*/
function mouseup(inEvent) {
@@ -107,7 +107,7 @@ function mouseup(inEvent) {
/**
* Handler for `mouseover`.
*
* @this {module:ol/pointer/MouseSource}
* @this {import("./MouseSource.js").default}
* @param {MouseEvent} inEvent The in event.
*/
function mouseover(inEvent) {
@@ -120,7 +120,7 @@ function mouseover(inEvent) {
/**
* Handler for `mouseout`.
*
* @this {module:ol/pointer/MouseSource}
* @this {import("./MouseSource.js").default}
* @param {MouseEvent} inEvent The in event.
*/
function mouseout(inEvent) {
@@ -134,7 +134,7 @@ function mouseout(inEvent) {
class MouseSource extends EventSource {
/**
* @param {module:ol/pointer/PointerEventHandler} dispatcher Event handler.
* @param {import("./PointerEventHandler.js").default} dispatcher Event handler.
*/
constructor(dispatcher) {
const mapping = {
@@ -154,7 +154,7 @@ class MouseSource extends EventSource {
/**
* @const
* @type {Array<module:ol/pixel~Pixel>}
* @type {Array<import("../pixel.js").Pixel>}
*/
this.lastTouches = [];
}
@@ -223,7 +223,7 @@ class MouseSource extends EventSource {
* for the fake pointer event.
*
* @param {Event} inEvent The in event.
* @param {module:ol/pointer/PointerEventHandler} dispatcher Event handler.
* @param {import("./PointerEventHandler.js").default} dispatcher Event handler.
* @return {Object} The copied event.
*/
function prepareEvent(inEvent, dispatcher) {