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

kerosene-ui: Make UnwrapComponent utlity type actually recursive #71

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

nhardy
Copy link
Member

@nhardy nhardy commented May 13, 2020

Read about this technique in the discussion for TypeScript's new awaited type operator when they were considering just a utility type: microsoft/TypeScript#35998

This appears to trick TS into lazily evaluating the types which avoids infinite recursion, which isn't permitted.

@nhardy nhardy force-pushed the feature/kerosene-ui-unwrapcomponent-recursive branch from 517aaaf to 9e9ab73 Compare May 13, 2020 05:59
@github-actions
Copy link

Coverage Status

Coverage remained the same at 91.806% when pulling 9e9ab73 on feature/kerosene-ui-unwrapcomponent-recursive into 5364828 on master.

@nhardy nhardy requested a review from ojkelly May 13, 2020 06:02
ojkelly
ojkelly previously approved these changes Jun 6, 2020
@nhardy nhardy force-pushed the feature/kerosene-ui-unwrapcomponent-recursive branch from 9e9ab73 to c911a81 Compare June 8, 2020 23:22
@nhardy nhardy merged commit 89164a7 into master Jun 9, 2020
@nhardy nhardy deleted the feature/kerosene-ui-unwrapcomponent-recursive branch June 9, 2020 00:21
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