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 it-pipe types #1910

Merged
merged 9 commits into from
Jan 8, 2021
Merged

Fix it-pipe types #1910

merged 9 commits into from
Jan 8, 2021

Conversation

dapplion
Copy link
Contributor

Overwrite types until this issue is fixed alanshaw/it-pipe#4
Original types contain

export function pipe (first: any, ...rest: any[]): any

Which act as a @ts-ignore compromising type safety

Overwrite types until this issue is fixed alanshaw/it-pipe#4
Original types contain
```
export function pipe (first: any, ...rest: any[]): any
```
Which act as a @ts-ignore compromising type safety
@codeclimate
Copy link

codeclimate bot commented Dec 22, 2020

Code Climate has analyzed commit bd1ff08 and detected 0 issues on this pull request.

View more on Code Climate.

@github-actions github-actions bot added the scope-networking All issues related to networking, gossip, and libp2p. label Dec 22, 2020
ams-201062
ams-201062 previously approved these changes Dec 22, 2020
@mpetrunic
Copy link
Member

As I sadi in chat. I think it would better to upstream proper types to it-pipe instead of hacking code and types like this just to make it work. IMO there is no rush to change this as this code works (without full typesafety) and we won't be required to change anything anytime soon so we can wait to get better it-pipe types upstream.

@wemeetagain wemeetagain merged commit e11fe90 into master Jan 8, 2021
@wemeetagain wemeetagain deleted the dapplion/it-pipe-types branch January 8, 2021 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential ts-ignore effect in current type definition
4 participants