From bbbcd4f69a4bd4a460cb7416b29bad5728b7f909 Mon Sep 17 00:00:00 2001 From: woutergd Date: Sun, 28 Jun 2015 12:40:05 +0200 Subject: [PATCH] And updating the definition file itself can also be useful when making modifications to it to pass the tests... --- openlayers/openlayers.d.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/openlayers/openlayers.d.ts b/openlayers/openlayers.d.ts index 7b3b16c7b..d4d3930b5 100644 --- a/openlayers/openlayers.d.ts +++ b/openlayers/openlayers.d.ts @@ -53,7 +53,7 @@ declare module olx { /** * The projection the position is reported in. */ - projection?: ol.proj.ProjectionLike; + projection?: ol.proj.ProjectionLike | ol.proj.Projection; } interface GraticuleOptions { @@ -186,7 +186,7 @@ declare module olx { minZoom?: number; /** The projection. Default is EPSG:3857 (Spherical Mercator). */ - projection?: ol.proj.ProjectionLike; + projection?: ol.proj.ProjectionLike | ol.proj.Projection; /** The initial resolution for the view. The units are projection units per pixel (e.g. meters per pixel). An alternative to setting this is to set zoom. Default is undefined, and layer sources will not be fetched if neither this nor zoom are defined. */ resolution?: number; @@ -227,7 +227,7 @@ declare module olx { * The easing function to use. Can be an ol.easing or a custom function. Default is ol.easing.upAndDown. */ // TODO: Check if it is an ol.easing function - easing: () => void; + easing?: () => void; } interface PanOptions { @@ -251,7 +251,7 @@ declare module olx { * The easing function to use. Can be an ol.easing or a custom function. Default is ol.easing.upAndDown. */ // TODO: Check if it is an ol.easing function - easing: () => void; + easing?: () => void; } interface RotateOptions { @@ -280,7 +280,7 @@ declare module olx { * The easing function to use. Can be an ol.easing or a custom function. Default is ol.easing.upAndDown. */ // TODO: Check if it is an ol.easing function - easing: () => void; + easing?: () => void; } interface ZoomOptions { @@ -304,7 +304,7 @@ declare module olx { * The easing function to use. Can be an ol.easing or a custom function. Default is ol.easing.upAndDown. */ // TODO: Check if it is an ol.easing function - easing: () => void; + easing?: () => void; } } @@ -1867,7 +1867,8 @@ declare module ol { * Generate an animated transition while updating the view resolution. * @param options Zoom options. */ - function pan(options: olx.animation.PanOptions): any; + //TODO: return ol.PreRenderFunction + function zoom(options: olx.animation.ZoomOptions): any; } /**