Skip to content

Instantly share code, notes, and snippets.

@ca0v
Last active August 22, 2016 15:43
Show Gist options
  • Save ca0v/2e3da4ce0c7178f102f1 to your computer and use it in GitHub Desktop.
Save ca0v/2e3da4ce0c7178f102f1 to your computer and use it in GitHub Desktop.
proj4.d.ts
declare module "proj4" {
interface Transformer {
forward: (p: Point) => Point;
inverse: (p: Point) => Point;
}
class Point {
x: number;
y: number;
constructor(x: number, y: number);
}
function Proj(a, b): Transformer;
module Proj {
export function defs(name: string): any;
export function defs(name: string, def: string): void;
export function transform(from: any, to: any, pt: Point): Point;
export function parse(sr: string): any;
}
export = Proj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment