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

fix: Manual typings with generics #55

Merged
merged 2 commits into from Sep 23, 2022

Conversation

aarne
Copy link
Contributor

@aarne aarne commented Sep 23, 2022

With 9.x release we lost some accuracy in types.

compared to 8.x series https://github.com/avoidwork/tiny-lru/blob/8.0.2/tiny-lru.d.ts

@avoidwork
Copy link
Owner

avoidwork commented Sep 23, 2022

The file is generated by typescript, so I don't think this is ideal because it'd be undone.

npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir .

@aarne
Copy link
Contributor Author

aarne commented Sep 23, 2022

it never changes, does it? for next major version we can code up one manually i'm sure :) I propose to remove the generation as it does more harm than good in this instance.

@avoidwork avoidwork merged commit ac60da1 into avoidwork:master Sep 23, 2022
@avoidwork
Copy link
Owner

This is 9.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants