We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does Glean support typing props when extracting components?
For example, extracting the middle component:
const hello = 'hello'; ()=>{ <div> <div>Hello world {hello}</div> <div> }
returns a functional component where hello is cast as any
function HelloWorldComponent({hello}) { return (<div>Hello world {hello}</div>); }
I'm wondering if it's possible infer and set the prop type, or do I need to set it manually in all cases?
function HelloWorldComponent({hello}:{hello:string}) { return (<div>Hello world {hello}</div>); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Does Glean support typing props when extracting components?
For example, extracting the middle component:
returns a functional component where hello is cast as any
I'm wondering if it's possible infer and set the prop type, or do I need to set it manually in all cases?
The text was updated successfully, but these errors were encountered: