jfgodoy / knex-postgis

postgis extension for knex
MIT License
183 stars 25 forks source link

Export ExtendedKnexRaw type #41

Open nicolas-besnard opened 4 years ago

nicolas-besnard commented 4 years ago

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 commented 4 years ago

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