denodrivers / postgres

PostgreSQL driver for Deno

Home Page:https://denodrivers.github.io/postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS2315 [ERROR]: Type 'Conn' is not generic.

sharonjl opened this issue · comments

Running into this error with deno 1.9.1 and postgres 0.11.1

Not doing much, just importing the module gives this error.

error: TS2315 [ERROR]: Type 'Conn' is not generic.
  #conn!: Deno.Conn<Deno.NetAddr>;
          ~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/postgres@v0.11.1/connection/connection.ts:149:11

This happens when you upgrade from 1.9.0 -> 1.9.1, as we just discovered upgrading.

Just noticed this here. #280

@Soremwar since #280 has been closed, could you please update this current issue here and let us know when 0.11.2 is available?

It is raising an issue with denodb and I would love to know as soon as the patch is released.

Thanks for your help, we'll be patient :)

I added a PR with a fix 💪🏻 #282