Closed willsoto closed 3 years ago
Hi @willsoto ! I mentioned this in #111 as well, but I will mention it here as well for future reference in case anyone stumbles across the same. This is how you should use the generic type:
import {AbstractMigration, ClientPostgreSQL} from "https://deno.land/x/nessie@1.2.4/mod.ts";
export default class extends AbstractMigration<ClientPostgreSQL> {
By doing this, you will see the proper typehint.
Let me know if this solves it!
That works! Thanks
System (please complete the following information):
1.2.4
Describe the bug A clear and concise description of what the bug is.
I cannot provide a client to the
AbstractMigration
class as specified in the examples and docs.To Reproduce Steps to reproduce the behavior:
Client
to theAbstractMigration
classExpected behavior A clear and concise description of what you expected to happen.
Migration should compile when providing a
Client
Screenshots or error log If applicable, add screenshots or error log to help explain your problem.
Additional context Add any other context about the problem here.
I have tried
postgres@v0.4.5
(what is in the docs) andpostgres@v0.11.2
(latest) - both fail to compile.