mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-02 19:54:33 +00:00
This commit creates a new interface on @types/pg called Submittable following the description on node-postgres API doc, which says: > client.query with a Submittable > > If you pass an object to client.query and the object has a .submit > function on it, the client will pass it's PostgreSQL server connection > to the object and delegate query dispatching to the supplied object > [...] and uses the new interface as argument type to Client.query and Pool.query. This allows the usage of pg-copy-streams package.