From 7cb6ae781bb90191fe1332c728a11a7e15f2d639 Mon Sep 17 00:00:00 2001 From: Olivier Sechet Date: Fri, 16 Mar 2018 17:12:50 +0100 Subject: [PATCH] Fix typo for ol.proj.Units type --- types/openlayers/index.d.ts | 2 +- types/openlayers/openlayers-tests.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/types/openlayers/index.d.ts b/types/openlayers/index.d.ts index 0dfd1fe464..7a1d35edaa 100644 --- a/types/openlayers/index.d.ts +++ b/types/openlayers/index.d.ts @@ -7541,7 +7541,7 @@ export namespace proj { * Projection units: `'degrees'`, `'ft'`, `'m'`, `'pixels'`, `'tile-pixels'` or * `'us-ft'`. */ - type Units = "degress" | "ft" | "m" | "pixels" | "tile-pixels" | "us-ft"; + type Units = "degrees" | "ft" | "m" | "pixels" | "tile-pixels" | "us-ft"; /** * Meters per unit lookup table. diff --git a/types/openlayers/openlayers-tests.ts b/types/openlayers/openlayers-tests.ts index fa42579ba9..b66aa08f67 100644 --- a/types/openlayers/openlayers-tests.ts +++ b/types/openlayers/openlayers-tests.ts @@ -617,6 +617,13 @@ projection.setGetPointResolution(getPointResolutionFn); projection.setGlobal(booleanValue); projection.setWorldExtent(extent); +units = 'degrees'; +units = 'ft'; +units = 'm'; +units = 'pixels'; +units = 'tile-pixels'; +units = 'us-ft'; + // // ol.Map //