Skip to content

bug is missing in props validation #3090

@jonlepage

Description

@jonlepage

hi why this is not valid ? it should ok no!
image
image

here the demo from your example

interface Props {
	age: number
 }
 const Hello: VFC<Props> = function Hello(props) {
	const { age } = props;

	return <div>Hello {name}</div>;
	// 'name' type is missing in props validation
 }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions