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 类型定义有问题? #554

Open
cheese-git opened this issue Nov 16, 2018 · 1 comment
Open

TypeScript 类型定义有问题? #554

cheese-git opened this issue Nov 16, 2018 · 1 comment

Comments

@cheese-git
Copy link

image

编辑器提示类型 Queriable 上不存在属性 clone,然而编译成 js 是能正常执行的

@leeyeh
Copy link
Contributor

leeyeh commented Nov 16, 2018

我们推荐使用下面的方式,能够得到最好的类型推断:

class Todo extends Object {}
const query =  new Query(Todo);

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