这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jgabriel98
Copy link

@jgabriel98 jgabriel98 commented Nov 4, 2025

Quick Context:

the package code we´re discussing about: https://github.com/stevenschobert/instafeed.js/wiki/Data-Transformations

Why is there a bug and how this PR solves it:

  • transform(item: InstagramDataItem) parameter type should be InstafeedDefaultItem;
  • filter(item: InstagramDataItem) parameter type should actually be T;

the above statements are based on official package wiki, its source code and actually running the package and debugging its behavior;


Please fill in this template.

As disccuess here: microsoft/TypeScript#41746 (comment)

`Record<string, unknown>` behaves differently from `Record<string, unknown>`
@typescript-bot
Copy link
Contributor

typescript-bot commented Nov 4, 2025

@jgabriel98 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 that 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, DT maintainers or others

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This PR has been inactive for 11 days — please try to get reviewers!


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 74018,
  "author": "jgabriel98",
  "headCommitOid": "4836d64b258276f6fd8458fab890d9e73519c973",
  "mergeBaseOid": "52da2c9cc45f32dd0b0727e0d39ad0f9db301080",
  "lastPushDate": "2025-11-04T16:23:59.000Z",
  "lastActivityDate": "2025-11-09T22:40:42.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "instafeed.js",
      "kind": "edit",
      "files": [
        {
          "path": "types/instafeed.js/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/instafeed.js/instafeed.js-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "IncognitaDev"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "stale",
      "reviewer": "IncognitaDev",
      "date": "2025-11-04T16:42:54.000Z",
      "abbrOid": "0990a1a"
    }
  ],
  "mainBotCommentID": 3486875680,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Untested Change This PR does not touch tests label Nov 4, 2025
@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board Nov 4, 2025
@typescript-bot
Copy link
Contributor

🔔 @IncognitaDev — 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 moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Nov 4, 2025
@IncognitaDev
Copy link
Contributor

thx for the contribution, i will probably change it to be a generic sooner, but this is already a good fix.

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Nov 4, 2025
@IncognitaDev
Copy link
Contributor

can you add a test for this case? @jgabriel98

@typescript-bot typescript-bot removed Owner Approved A listed owner of this package signed off on the pull request. Untested Change This PR does not touch tests labels Nov 4, 2025
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in Pull Request Status Board Nov 4, 2025
@jgabriel98
Copy link
Author

can you add a test for this case? @jgabriel98

@IncognitaDev i can try mas probably will fail: i'm eye baling this fix.
In other words: i did not make a local fork and pulled the repository, i just edited the file directly on github website, since the fix was simple.

My last commit is an attempt of adding a test. But if it fail, i wont be able to help more, because i'm actually running it on a remote raspberry pi, and it wont be able to handle such a huge repository 😞

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot
Copy link
Contributor

@jgabriel98 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 that 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 Pull Request Status Board Nov 4, 2025
@jgabriel98
Copy link
Author

jgabriel98 commented Nov 4, 2025

Yep,
i'm unable to write/validate good tests with having to setup WSL2 on my machine.

@IncognitaDev Do you mind doing it so for me?
(by directly commiting into this PR, or by sending me the test code then i commit it myself).

Sorry for the trouble!

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

@jgabriel98 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 that 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 Pull Request Status Board Nov 4, 2025
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Nov 4, 2025
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot
Copy link
Contributor

@jgabriel98 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 that 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 Pull Request Status Board Nov 4, 2025
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Nov 4, 2025
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot
Copy link
Contributor

@jgabriel98 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 that 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 Pull Request Status Board Nov 4, 2025
Remove unnecessary type expectation comment in filter function.
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Nov 4, 2025
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Nov 4, 2025
@jgabriel98 jgabriel98 changed the title fix(instafeed.js) Fix transform() return type to Record<string, any> fix(instafeed.js) Fix transform() return type to Template Nov 4, 2025
@typescript-bot
Copy link
Contributor

@IncognitaDev 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?

@IncognitaDev
Copy link
Contributor

IncognitaDev commented Nov 4, 2025

@IncognitaDev Do you mind doing it so for me?

yep, i can do it soon

@jgabriel98
Copy link
Author

jgabriel98 commented Nov 4, 2025

@IncognitaDev Do you mind doing it so for me?

yep, i can do it soon

@IncognitaDev no need anymore!
i've got it after some trial & error (pushing many times and seeing the github actions result). So there's no need anymore (but thanks anyway!)

Also, i've changed the PR to actually correctly use type Templating, like you wished for:

now, all the callbacks/hooks returns and parameter are integrated!

@jgabriel98 jgabriel98 changed the title fix(instafeed.js) Fix transform() return type to Template fix(instafeed.js) Fix Template and generics Nov 5, 2025
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Nov 5, 2025
@typescript-bot
Copy link
Contributor

@jgabriel98 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 that 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 Pull Request Status Board Nov 5, 2025
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Nov 5, 2025
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Nov 5, 2025
@jgabriel98
Copy link
Author

hey @IncognitaDev,
is there anything left to getting a approval on this PR?

@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 Nov 15, 2025
@typescript-bot
Copy link
Contributor

Re-ping @IncognitaDev:

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

Could someone please give it some attention? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer.

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

3 participants