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
https://www.typescriptlang.org/play/?ts=5.0.4#code/JYOwLgpgTgZghgYwgAgMoBtgBNoBUD2+6YwADgApT6kDOyA3gLABQyyWwNcARuhFgH4AXMm6E+cEAG4WbUukQQAthHDDkNMFFABzGa2ScAInCgBrdWKIRJ+gL4sWCfCE3Iw4khSq0RGbHieZJTUdAC8DLLsnDx8WCLw6DQQLA7MTi5uWHBgcEIAShAAjgCuwFD8ADz+OFAERF4htAB8yBFMBhxcvPwJcEkQADRR8ooq4CIARB6kk8MGxqZmfQPzaSww+FDIABTOrmDIZhAAnoYg7kHeoQCUkQb7bgD6x2cRr8hwdK-4MGiYtXqxGCPho+ii2VyAG0XqcALptS4NEGhGGvOFRR7WAB06HwOh2sJON1SjmYQA
The text was updated successfully, but these errors were encountered:
You are trying to copy, key-by-key, from this type:
{ disabled?: boolean; placement?: string; isDark?: boolean; }
...to this type...
{ disabled: boolean; placement: string; isDark: boolean; }
That would mean copying values that might be undefined to properties that don't accept undefined.
undefined
This is simply a case of typescript doing its job and telling you you've made a mistake.
Sorry, something went wrong.
You are trying to copy, key-by-key, from this type: { disabled?: boolean; placement?: string; isDark?: boolean; } ...to this type... { disabled: boolean; placement: string; isDark: boolean; } That would mean copying values that might be undefined to properties that don't accept undefined. This is simply a case of typescript doing its job and telling you you've made a mistake.
ok, I know, thank you
No branches or pull requests
Acknowledgement
Comment
https://www.typescriptlang.org/play/?ts=5.0.4#code/JYOwLgpgTgZghgYwgAgMoBtgBNoBUD2+6YwADgApT6kDOyA3gLABQyyWwNcARuhFgH4AXMm6E+cEAG4WbUukQQAthHDDkNMFFABzGa2ScAInCgBrdWKIRJ+gL4sWCfCE3Iw4khSq0RGbHieZJTUdAC8DLLsnDx8WCLw6DQQLA7MTi5uWHBgcEIAShAAjgCuwFD8ADz+OFAERF4htAB8yBFMBhxcvPwJcEkQADRR8ooq4CIARB6kk8MGxqZmfQPzaSww+FDIABTOrmDIZhAAnoYg7kHeoQCUkQb7bgD6x2cRr8hwdK-4MGiYtXqxGCPho+ii2VyAG0XqcALptS4NEGhGGvOFRR7WAB06HwOh2sJON1SjmYQA
The text was updated successfully, but these errors were encountered: