Skip to content

add optional alt-property to LatLngLiteral and LatLngTuple - #66803

Merged
typescript-bot merged 3 commits into
DefinitelyTyped:masterfrom
henrythasler:master
Sep 24, 2023
Merged

typescript-bot merged 3 commits into
DefinitelyTyped:masterfrom
henrythasler:master

Conversation

@henrythasler

@henrythasler henrythasler commented Sep 23, 2023 •

Copy link
Copy Markdown
Contributor

Leaflet's LatLng-Class support an optional alt-property (altitude of a point) upon creation via literals or tuples. This PR adds this to the typings as well.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: https://leafletjs.com/reference.html#latlng
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.

@typescript-bot

typescript-bot commented Sep 23, 2023 •

Copy link
Copy Markdown
Contributor

@henrythasler Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners or DT maintainers

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 66803,
  "author": "henrythasler",
  "headCommitOid": "4132e3bf41e654bf5e2442da501eba7358a9b21b",
  "mergeBaseOid": "4f8cfc8c3bd1d6d304424760ad2934fe1b3da190",
  "lastPushDate": "2023-09-23T09:51:48.000Z",
  "lastActivityDate": "2023-09-24T11:17:24.000Z",
  "mergeOfferDate": "2023-09-24T10:31:07.000Z",
  "mergeRequestDate": "2023-09-24T11:17:24.000Z",
  "mergeRequestUser": "henrythasler",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "leaflet",
      "kind": "edit",
      "files": [
        {
          "path": "types/leaflet/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/leaflet/leaflet-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "alejo90",
        "atd-schubert",
        "mcauer",
        "ronikar",
        "life777",
        "henrythasler",
        "captain-igloo",
        "someonewithpc"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "someonewithpc",
      "date": "2023-09-24T10:30:23.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1732270302,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. Popular package This PR affects a popular package (as counted by NPM download counts). Author is Owner The author of this PR is a listed owner of the package. labels Sep 23, 2023
@typescript-bot

Copy link
Copy Markdown
Contributor

🔔 @alejo90 @atd-schubert @mcauer @ronikar @life777 @captain-igloo @someonewithpc — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot

Copy link
Copy Markdown
Contributor

@henrythasler Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@typescript-bot

Copy link
Copy Markdown
Contributor

@henrythasler Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Sep 23, 2023

@someonewithpc someonewithpc left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reset on my fork at https://github.com/someonewithpc/DefinitelyTyped.git / [email protected]:someonewithpc/DefinitelyTyped.git

I replaced some small things and kept you as the author

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Sep 23, 2023
@typescript-bot

Copy link
Copy Markdown
Contributor

@henrythasler One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@henrythasler

Copy link
Copy Markdown
Contributor Author

The only difference I see is with type LatLngTuple where I prefer my Tuple [number, number, number?] with an optional property over your Union [number, number] | [number, number, number]. What do you think?

@someonewithpc

Copy link
Copy Markdown
Contributor

The only difference I see is with type LatLngTuple where I prefer my Tuple [number, number, number?] with an optional property over your Union [number, number] | [number, number, number]. What do you think?

Either is fine, but I think the union is less surprising. But the other differences were with the warnings, I think something may have gone wrong when you tried to solve merge conflicts

@henrythasler

Copy link
Copy Markdown
Contributor Author

If you mean the specific linter-rules, they were introduced by PR66798. I don't want to revert that change. It seems the diff shown here did not pick this up correctly.

@someonewithpc someonewithpc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad then, I must have diffed against the wrong commit

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner and removed Revision needed This PR needs code changes before it can be merged. labels Sep 24, 2023
@typescript-bot

Copy link
Copy Markdown
Contributor

@henrythasler: Everything looks good here. I am ready to merge this PR (at 4132e3b) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@alejo90, @atd-schubert, @mcauer, @ronikar, @life777, @captain-igloo, @someonewithpc: you can do this too.)

@henrythasler

Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot
typescript-bot merged commit d281bfe into DefinitelyTyped:master Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author is Owner The author of this PR is a listed owner of the package. Owner Approved A listed owner of this package signed off on the pull request. Popular package This PR affects a popular package (as counted by NPM download counts). Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants