Skip to content

Fix typescript definitions - #33

Closed
MichaelBitard wants to merge 1 commit into
uhop:masterfrom
MichaelBitard:master
Closed

MichaelBitard wants to merge 1 commit into
uhop:masterfrom
MichaelBitard:master

Conversation

@MichaelBitard

Copy link
Copy Markdown

Related to #32

The main change is in tsconfig.json ("skipLibCheck": true should be false because it will skip all d.ts files 😢 )

Everything I did after this change was launching npm run ts-check and fix every error.

Comment thread src/utils/take.d.ts
*/
declare function take<T = any>(
n: number,
finalValue?: typeof none | typeof stop = none

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

You cannot put a default value in a declare function

@uhop uhop self-assigned this Mar 5, 2026
@uhop uhop added the bug Something isn't working label Mar 5, 2026
@uhop

uhop commented Mar 6, 2026

Copy link
Copy Markdown
Owner

I confirmed the bug with the release version. I'll likely close this PR without merging, because the problems are mostly fixed in my private version among other changes. I'll keep it until the fix is merged. In any case thank you for the PR — it highlighted problems.

@uhop

uhop commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Yeah, my changes broke the PR — closing as promised.

@uhop uhop closed this Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants