From e43d77cffbe7e4b9ee448f2b04d1894075dd2dec Mon Sep 17 00:00:00 2001 From: enternet Date: Mon, 13 Oct 2014 16:53:06 +0300 Subject: [PATCH] Minor fixes 1) GeoJSON.setStyle(style: PathOptions) 2) trim(str: string): string 2) CRLF missed --- leaflet/leaflet.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 511f49b0e1..4e38fc6d06 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -418,7 +418,8 @@ declare module L { on(type: string, fn: (e: LeafletEvent) => void, context?: any): Layers; once(type: string, fn: (e: LeafletEvent) => void, context?: any): Layers; off(type: string, fn?: (e: LeafletEvent) => void, context?: any): Layers; - fire(type: string, data?: any): Layers; addEventListener(eventMap: any, context?: any): Layers; + fire(type: string, data?: any): Layers; + addEventListener(eventMap: any, context?: any): Layers; removeEventListener(eventMap?: any, context?: any): Layers; clearAllEventListeners(): Layers; on(eventMap: any, context?: any): Layers; @@ -909,6 +910,11 @@ declare module L { * Changes styles of GeoJSON vector layers with the given style function. */ setStyle(style: (featureData: any) => any): GeoJSON; + + /** + * Changes styles of GeoJSON vector layers with the given style options. + */ + setStyle(style: PathOptions): GeoJSON; /** * Resets the the given vector layer's style to the original GeoJSON style, @@ -4052,7 +4058,7 @@ declare module L { /** * Trims the whitespace from both ends of the string and returns the result. */ - static trim(str: string): boolean; + static trim(str: string): string; /** * Data URI string containing a base64-encoded empty GIF image. Used as a hack