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

[trianglify]: fix trianglify types #69426

Merged
merged 5 commits into from May 15, 2024

Conversation

fdaciuk
Copy link
Contributor

@fdaciuk fdaciuk commented Apr 23, 2024

Please fill in this template.

@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 23, 2024

@fdaciuk Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this PR edits the configuration file, it can be merged once it's reviewed by a DT maintainer.

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

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ A DT maintainer needs to approve changes which affect module config files

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": 69426,
  "author": "fdaciuk",
  "headCommitOid": "ded6548afc5c5f7e361327abef094bc773463cd0",
  "mergeBaseOid": "9ff6856db12ba15015b91b2466171b7f27ab3677",
  "lastPushDate": "2024-04-23T23:31:50.000Z",
  "lastActivityDate": "2024-05-15T21:51:03.000Z",
  "mergeOfferDate": "2024-05-15T21:10:14.000Z",
  "mergeRequestDate": "2024-05-15T21:51:03.000Z",
  "mergeRequestUser": "fdaciuk",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "trianglify",
      "kind": "edit",
      "files": [
        {
          "path": "types/trianglify/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/trianglify/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/trianglify/trianglify-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/trianglify/tsconfig.json",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson) and not moving towards it (check: `compilerOptions.exactOptionalPropertyTypes`)"
        }
      ],
      "owners": [
        "unindented"
      ],
      "addedOwners": [
        "fdaciuk"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "peterblazejewicz",
      "date": "2024-05-15T21:09:37.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 2073654179,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Edits Owners This PR adds or removes owners label Apr 23, 2024
@typescript-bot
Copy link
Contributor

🔔 @unindented — 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 typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Apr 23, 2024
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Apr 23, 2024
@typescript-bot
Copy link
Contributor

@fdaciuk The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Apr 23, 2024
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Apr 23, 2024
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Apr 23, 2024
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Apr 23, 2024
@typescript-bot
Copy link
Contributor

@fdaciuk The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Apr 23, 2024
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Apr 23, 2024
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Apr 23, 2024
@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label May 5, 2024
@typescript-bot
Copy link
Contributor

Re-ping @unindented:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@peterblazejewicz
Copy link
Member

Let's wait a little more, the changes are braking, introducing new version and new module exports, etc.
ping @unindented

@fdaciuk
Copy link
Contributor Author

fdaciuk commented May 5, 2024

@peterblazejewicz the types were from an older version of trianglify. The update is to use the current version of the lib (4.1.1), as you can see here

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board May 12, 2024
@typescript-bot
Copy link
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @fdaciuk.

(Ping @unindented.)

/** An array of [x,y] coordinates to triangulate. Defaults to `undefined`, and points are generated. */
points?: Points | undefined;
/** A boolean value to tell if trianglify should render the triangles or not. Defaults to `true` */
fill?: boolean | undefined;
Copy link
Member

Choose a reason for hiding this comment

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

I think this is inconsistent, defaults like width/height should not have the defaults, so no undefined as supported type, that looks OK. But here (and other places) fill, won't have default null, if someone passes undefined:
https://github.com/qrohlf/trianglify/blob/master/src/trianglify.js#L48

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, my bad 🙈. I'll test every property to make sure they are consistent and I'll update this PR =)

Thanks for your review ❤️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@typescript-bot typescript-bot added the Check Config Changes a module config files label May 14, 2024
@typescript-bot
Copy link
Contributor

@peterblazejewicz Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

Copy link
Member

@peterblazejewicz peterblazejewicz left a comment

Choose a reason for hiding this comment

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

LGTM
@fdaciuk thanks!

@typescript-bot typescript-bot added Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels May 15, 2024
@typescript-bot
Copy link
Contributor

@fdaciuk: Everything looks good here. I am ready to merge this PR (at ded6548) 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! ❤️

(@unindented: you can do this too.)

@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board May 15, 2024
@fdaciuk
Copy link
Contributor Author

fdaciuk commented May 15, 2024

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board May 15, 2024
@typescript-bot typescript-bot merged commit 51476b5 into DefinitelyTyped:master May 15, 2024
4 checks passed
@fdaciuk fdaciuk deleted the fix/trianglify branch May 15, 2024 21:51
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Check Config Changes a module config files Edits Owners This PR adds or removes owners Maintainer Approved 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.

None yet

3 participants