Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@types/pg] functions escapeLiteral and escapeIdentifier missing from base "pg" module #68050

Open
RalphORama opened this issue Dec 31, 2023 · 0 comments

Comments

@RalphORama
Copy link

@types/pg has type detentions for escapeLiteral and escapeIdentifier on the ClientBase object, but not exported from the base pg module.

The pg docs recommend importing these functions directly from pg. Additionally, the pg source code states:

  // escapeIdentifier and escapeLiteral moved to utility functions & exported
  // on PG
  // re-exported here for backwards compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant