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

typescript类型问题,关于prop如果为可选对象会丢失类型为unknown #11

Open
zogwosh opened this issue Apr 8, 2024 · 0 comments

Comments

@zogwosh
Copy link

zogwosh commented Apr 8, 2024

举个例子

interface IProps extends INiceModalHandlers<number> {
  visible: boolean;
 model?:{
key?:string
key2?:string
key3?:string
}
}

会丢失model的类型

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

No branches or pull requests

1 participant