Skip to content

TypeScript 类型定义有问题? #554

Description

@cheese-git

image

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

Activity

  1. leeyeh commented on Nov 16, 2018

    @leeyeh
    Contributor

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

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions