Fix leaflet.d.ts, TileLayerOptions.subdomains is flexibly typed

From the comments, subdomains can be a string or an array of strings. We
can't make any strong type inference from the interface.

Quote:
"Subdomains of the tile service. Can be passed in the form of one string (where
each letter is a subdomain name) or an array of strings."
This commit is contained in:
Felix Fung
2013-09-08 17:18:47 -04:00
parent a8bf6681f1
commit f983cb1582

View File

@@ -808,7 +808,7 @@ declare module L {
* Subdomains of the tile service. Can be passed in the form of one string (where
* each letter is a subdomain name) or an array of strings.
*/
subdomains?: string;
subdomains?: any;
/**
* URL to the tile image to show in place of the tile that failed to load.