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

Update tsd #359

Merged
merged 3 commits into from
Nov 20, 2021
Merged

Update tsd #359

merged 3 commits into from
Nov 20, 2021

Conversation

bpinto
Copy link
Contributor

@bpinto bpinto commented Nov 17, 2021

No description provided.

@bpinto
Copy link
Contributor Author

bpinto commented Nov 20, 2021

As mentioned #340 (comment), I'm not sure if these changes are correct since I'm not familiar with typescript.

expectType<Event<string, number>>(logItem({type: 'value', value: 'hello'}, false))
expectType<Event<string, string>>(logItem({type: 'value', value: 'hello'}, false))
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this fail? I think this is intended to communicate that the Error type can be anything. Which maybe implies it should be unknown?

Copy link
Contributor Author

@bpinto bpinto Nov 20, 2021

Choose a reason for hiding this comment

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

Yes, it fails. You can see the failures on the PR created by dependabot.

I could change it to unknown if that's the correct fix, I really don't know. It seems odd that tests were passing before.

@mAAdhaTTah
Copy link
Contributor

Needs a rebase.

@bpinto
Copy link
Contributor Author

bpinto commented Nov 20, 2021

@mAAdhaTTah I've rebased and updated tsd to latest (0.19), it was previous on 0.18.

@mAAdhaTTah mAAdhaTTah merged commit 003bae9 into kefirjs:master Nov 20, 2021
@bpinto bpinto deleted the update-tsd branch November 20, 2021 22:28
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.

2 participants