mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
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:
2
leaflet/leaflet.d.ts
vendored
2
leaflet/leaflet.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user