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

Export ExtendedKnexRaw type #41

Open
nicolas-besnard opened this issue Dec 3, 2020 · 1 comment
Open

Export ExtendedKnexRaw type #41

nicolas-besnard opened this issue Dec 3, 2020 · 1 comment

Comments

@nicolas-besnard
Copy link

nicolas-besnard commented Dec 3, 2020

Hi,

Thank your for your lib, it's very useful when working with Postgis and Knex!

In Typescript, I'd like to be able to use the ExtendedKnexRaw to be able to use it in an interface where I'm storing the result of setSRID

Example:

interface LeadRepositoryAttributes {
  coordinates: ExtendedKnexRaw
}

const leage: LeadRepositoryAttributes = {
  coordinates: setSRID(makePoint())
}

Would you accept a PR that do that, or is there a different way to achieve this?

@jfgodoy
Copy link
Owner

jfgodoy commented Dec 3, 2020

Hi nicolas,
I only know basic stuff about typescript, so I don't know what is the best way to achieve what you want.
Send me that PR, I'll gladly review it

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

2 participants