Open phiresky opened 7 years ago
class TimestampTZType extends s.Type<Date, Date, "date"> { name = 'timestamptz'; serialize(arg: Date): string | number | boolean { return arg as any; } deserialize(arg: string | number | boolean): Date { return new Date("" + arg); } } export const timestamptz = new TimestampTZType;