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

Try to pre-resolve types in order to avoid Pick #2107

Merged
merged 4 commits into from Jul 4, 2019
Merged

Conversation

dotansimha
Copy link
Owner

@dotansimha dotansimha commented Jul 4, 2019

A solution for: #1904

It still requires typescript as a dependency, but now typescript-operations can use preResolveTypes: true in order to generate field: string instead of field: Pick<BaseType, 'field'>.

Required typescript-compatibility minor changes because of the needs to eliminate Maybe when building the intermediate types.

Added `preResolveTypes` to compatibility plugin to make sure to eliminate `Maybe` when referting to nested types
added preResolveTypes to live-demo
tried to generate more examples for `preResolveTypes`
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

1 participant