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 .d.ts errors #262

Merged
merged 3 commits into from
May 5, 2023
Merged

Fix .d.ts errors #262

merged 3 commits into from
May 5, 2023

Conversation

jacob-alford
Copy link
Owner

No description provided.

Comment on lines 370 to +371
[K in keyof Props]: Props[K] extends Prop<infer Flag, any, infer Val, infer Remap>
? Remap extends KeyNotMapped
? Prop<Flag, S, Val, ApplyKeyRemap<R, K & string>>
: Prop<Flag, S, Val, ApplyKeyRemap<R, Remap & string>>
? Val extends HKT2<S, any, any>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if Props[K] extends Prop<infer Flag, any, infer Val extends HKT2<S, any, any>, infer Remap> would work?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I tried that, but Typescript generated that inner extends constraint with S_1 for some reason and was still erroring (because it couldn't find the variable S_1 🙃)

Copy link
Collaborator

Choose a reason for hiding this comment

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

bizarre, ok

@coveralls
Copy link
Collaborator

coveralls commented May 5, 2023

Pull Request Test Coverage Report for Build 4896156632

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 4633591838: 0.0%
Covered Lines: 2306
Relevant Lines: 2306

💛 - Coveralls

@jacob-alford jacob-alford merged commit 117d3a5 into main May 5, 2023
5 checks passed
@jacob-alford jacob-alford deleted the ja/fix-dts-errors branch May 5, 2023 17:58
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

3 participants