Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for custom keys in TileLayerOptions #6694

Merged
merged 1 commit into from
Nov 15, 2015
Merged

Allow for custom keys in TileLayerOptions #6694

merged 1 commit into from
Nov 15, 2015

Conversation

lediur
Copy link
Contributor

@lediur lediur commented Nov 10, 2015

According to microsoft/TypeScript#3755, properties not previously defined in a type will now be marked as errors during compilation in TypeScript 1.6 and later.

Since a TileLayerOptions object is dynamically evaluated for custom properties that might be used in a provided tile URL template, the TypeScript change breaks this functionality.

The proposed change adds a string indexer (one of the suggested changes in the link above), which fixes the issue.

According to microsoft/TypeScript#3755, properties not previously defined in a type will now be marked as errors during compilation in TypeScript 1.6 and later. 

Since a TileLayerOptions object is dynamically evaluated for custom properties that might be used in a provided tile URL template, the TypeScript change breaks this functionality.

The proposed change adds a string indexer (one of the suggested changes in the link above), which fixes the issue.
@dt-bot
Copy link
Member

dt-bot commented Nov 10, 2015

leaflet/leaflet.d.ts

to author(@rgripper). could you review this PR?
👍 or 👎?

check list

  • pass the Travic-CI test?

@rgripper
Copy link
Contributor

@dt-bot 👍

basarat added a commit that referenced this pull request Nov 15, 2015
Allow for custom keys in TileLayerOptions
@basarat basarat merged commit aed1765 into DefinitelyTyped:master Nov 15, 2015
@basarat
Copy link
Member

basarat commented Nov 15, 2015

@vvakame your DT bot is AWESOME! 🌹

@rgripper
Copy link
Contributor

@basarat oh that's the reason the bot seemed so familiar xD

@lediur lediur deleted the patch-1 branch November 15, 2015 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants