Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e): jscodeshift --transform ts.js src
This commit is contained in:
@@ -5,19 +5,19 @@ import {clamp} from './math.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {function((module:ol/coordinate~Coordinate|undefined)): (module:ol/coordinate~Coordinate|undefined)} Type
|
||||
* @typedef {function((import("./coordinate.js").Coordinate|undefined)): (import("./coordinate.js").Coordinate|undefined)} Type
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/extent~Extent} extent Extent.
|
||||
* @return {module:ol/centerconstraint~Type} The constraint.
|
||||
* @param {import("./extent.js").Extent} extent Extent.
|
||||
* @return {Type} The constraint.
|
||||
*/
|
||||
export function createExtent(extent) {
|
||||
return (
|
||||
/**
|
||||
* @param {module:ol/coordinate~Coordinate=} center Center.
|
||||
* @return {module:ol/coordinate~Coordinate|undefined} Center.
|
||||
* @param {import("./coordinate.js").Coordinate=} center Center.
|
||||
* @return {import("./coordinate.js").Coordinate|undefined} Center.
|
||||
*/
|
||||
function(center) {
|
||||
if (center) {
|
||||
@@ -34,8 +34,8 @@ export function createExtent(extent) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/coordinate~Coordinate=} center Center.
|
||||
* @return {module:ol/coordinate~Coordinate|undefined} Center.
|
||||
* @param {import("./coordinate.js").Coordinate=} center Center.
|
||||
* @return {import("./coordinate.js").Coordinate|undefined} Center.
|
||||
*/
|
||||
export function none(center) {
|
||||
return center;
|
||||
|
||||
Reference in New Issue
Block a user