-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix .d.ts errors #262
Conversation
[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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 🙃)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bizarre, ok
Pull Request Test Coverage Report for Build 4896156632
💛 - Coveralls |
No description provided.