Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e): jscodeshift --transform ts.js src
This commit is contained in:
@@ -6,7 +6,7 @@ import {isEmpty} from '../obj.js';
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {!Object<string, Object<string, module:ol/proj~TransformFunction>>}
|
||||
* @type {!Object<string, Object<string, import("../proj.js").TransformFunction>>}
|
||||
*/
|
||||
let transforms = {};
|
||||
|
||||
@@ -23,9 +23,9 @@ export function clear() {
|
||||
* Registers a conversion function to convert coordinates from the source
|
||||
* projection to the destination projection.
|
||||
*
|
||||
* @param {module:ol/proj/Projection} source Source.
|
||||
* @param {module:ol/proj/Projection} destination Destination.
|
||||
* @param {module:ol/proj~TransformFunction} transformFn Transform.
|
||||
* @param {import("./Projection.js").default} source Source.
|
||||
* @param {import("./Projection.js").default} destination Destination.
|
||||
* @param {import("../proj.js").TransformFunction} transformFn Transform.
|
||||
*/
|
||||
export function add(source, destination, transformFn) {
|
||||
const sourceCode = source.getCode();
|
||||
@@ -42,9 +42,9 @@ export function add(source, destination, transformFn) {
|
||||
* projection to the destination projection. This method is used to clean up
|
||||
* cached transforms during testing.
|
||||
*
|
||||
* @param {module:ol/proj/Projection} source Source projection.
|
||||
* @param {module:ol/proj/Projection} destination Destination projection.
|
||||
* @return {module:ol/proj~TransformFunction} transformFn The unregistered transform.
|
||||
* @param {import("./Projection.js").default} source Source projection.
|
||||
* @param {import("./Projection.js").default} destination Destination projection.
|
||||
* @return {import("../proj.js").TransformFunction} transformFn The unregistered transform.
|
||||
*/
|
||||
export function remove(source, destination) {
|
||||
const sourceCode = source.getCode();
|
||||
@@ -62,7 +62,7 @@ export function remove(source, destination) {
|
||||
* Get a transform given a source code and a destination code.
|
||||
* @param {string} sourceCode The code for the source projection.
|
||||
* @param {string} destinationCode The code for the destination projection.
|
||||
* @return {module:ol/proj~TransformFunction|undefined} The transform function (if found).
|
||||
* @return {import("../proj.js").TransformFunction|undefined} The transform function (if found).
|
||||
*/
|
||||
export function get(sourceCode, destinationCode) {
|
||||
let transform;
|
||||
|
||||
Reference in New Issue
Block a user