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
在《接口》这一节最后“注意”部分的示例有点问题。 CrazyClass 在实现Crazy时显示如下报错:
The text was updated successfully, but these errors were encountered:
我也遇到这个问题,大佬 解决没!
Sorry, something went wrong.
interface Crazy { new (): { hello: number; }; }
const CrazyClass = function() {
} as unknown as Crazy
// Because const crazy = new CrazyClass(); crazy.hello = 156 console.log(crazy); 问题解决了,就是不知道为啥要这样解决!
No branches or pull requests
在《接口》这一节最后“注意”部分的示例有点问题。
CrazyClass 在实现Crazy时显示如下报错:
The text was updated successfully, but these errors were encountered: