adelsz / pgtyped

pgTyped - Typesafe SQL in TypeScript
https://pgtyped.dev
MIT License
2.97k stars 97 forks source link

Domain overrides only partially working #503

Open blahbleepew opened 1 year ago

blahbleepew commented 1 year ago

I have a custom domain that is:

create domain custom_time as timestamptz

When I set the type override, only insert and update queries are overridden:

"typesOverrides": {
  "custom_time": "BigInt"
}

Selects and drops are still the base type:

/** 'Drop' parameters type */
export interface IDropParams {
  time?: Date | null | void;
  times: DateArray;
}

/** 'Get' return type */
export interface IGetResult {
  ctime: Date;
  otime: Date;
}
antoineharel commented 1 year ago

Hi, Interested to know if there were any followup on this !

@adelsz do you have any idea on how to resolve this ?

Thanks !