The transormer method below should actually be anonymous but that is not allowed in typescript:
class Proj {
static (a, b): {
forward: (p: Point) => Point;
inverse: (p: Point) => Point;
};
static defs(name: string): any;
static defs(name: string, def: string): void;
static transform(from: any, to: any, pt: Point);
static parse(sr: string): any;
}
So how can this be defined such that the following is possible?
import proj = require("proj");
proj("EPSG:3857", "EPSG:4326").forward([0,0]);