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

TS2693: 'Message' only refers to a type, but is being used as a value here #2

Open
rainmanhhh opened this issue Aug 31, 2018 · 1 comment

Comments

@rainmanhhh
Copy link

在typescript中使用时报Message只是一个接口不能直接调它的方法
代码如下:
Message.alert('this is test', 'msg', {})

如何写d.ts将他同时定义为一个对象呢?就像Vue那样?

@roblav96
Copy link
Contributor

@rainmanhhh #3

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

2 participants