dinoql icon indicating copy to clipboard operation
dinoql copied to clipboard

TypeScript support

Open sobolevn opened this issue 5 years ago • 1 comments

Hi, this project looks awesome!

I would really love to use this project with TypeScript. I see two main features:

  1. Typing existing functions (easy part)
  2. Make queries type sensetive
data: {
   users: {
      name: string
   }
}

const users = dinoql(data)`
    users {
      name
    }
`

And then we have users typed as { name: string }[]

sobolevn avatar May 12 '19 11:05 sobolevn