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

There is Flow typing syntax In TypeScript example of ValuesType. #104

Closed
ghost opened this issue Oct 1, 2019 · 1 comment · Fixed by #105
Closed

There is Flow typing syntax In TypeScript example of ValuesType. #104

ghost opened this issue Oct 1, 2019 · 1 comment · Fixed by #105

Comments

@ghost
Copy link

ghost commented Oct 1, 2019

Maybe should be fixed without $?

import { ValuesType } from 'utility-types';

type Props = { name: string; age: number; visible: boolean };
// Expect: string | number | boolean
type PropsValues = $ValuesType<Props>;
@piotrwitek
Copy link
Owner

Thanks @kidkkr!

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 a pull request may close this issue.

1 participant