-
Notifications
You must be signed in to change notification settings - Fork 30.5k
fix(instafeed.js) Fix Template and generics #74018
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
base: master
Are you sure you want to change the base?
Conversation
As disccuess here: microsoft/TypeScript#41746 (comment) `Record<string, unknown>` behaves differently from `Record<string, unknown>`
|
@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 PRCode ReviewsBecause 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
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis 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"
} |
|
🔔 @IncognitaDev — please review this PR in the next few days. Be sure to explicitly select |
|
thx for the contribution, i will probably change it to be a generic sooner, but this is already a good fix. |
|
can you add a test for this case? @jgabriel98 |
@IncognitaDev i can try mas probably will fail: i'm eye baling this fix. 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 😞 |
|
@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. |
|
Yep, @IncognitaDev Do you mind doing it so for me? Sorry for the trouble! |
|
@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. |
|
@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. |
|
@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. |
Remove unnecessary type expectation comment in filter function.
Record<string, any>|
@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? |
yep, i can do it soon |
@IncognitaDev no need anymore! 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 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. |
|
hey @IncognitaDev, |
|
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! |
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 beInstafeedDefaultItem;filter(item: InstagramDataItem)parameter type should actually beT;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.
pnpm test <package to test>.