Skip to content

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

Merged
nhardy merged 2 commits into
masterfrom
feature/kerosene-ui-unwrapcomponent-recursive
Jun 9, 2020
Merged

kerosene-ui: Make UnwrapComponent utlity type actually recursive#71
nhardy merged 2 commits into
masterfrom
feature/kerosene-ui-unwrapcomponent-recursive

Conversation

@nhardy

@nhardy nhardy commented May 13, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown

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