Skip to content

🚀 Feature: Add Typing Support for Query #581

@stnguyen90

Description

@stnguyen90

🔖 Feature description

As a developer, I'd like to be able to have my IDE suggest/autocomplete attribute and check the type of value when creating a Query.

🎤 Pitch

Using the web SDK and TypeScript as an example, it would be cool to be able to do:

type Todo = Models.Document & {
    content: string;
    isComplete: boolean;
  }

Query.equal<Todo>("

and then have my IDE suggest:

image

Then, if I pass a string into the value, it would show an error/warning because it should be a boolean.

image

image

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions