phero
phero copied to clipboard
Support `DateConstructor`
I'm not sure this if is something that should be supported, but I'm just dropping it here to atleast start of the discussion. I'm not sure if this is specific to the DateConstructor
though.
The reason I'd like to see this supported? Prisma
exposes this type internally in their generated typings. We are now unable to use these types directly as a return types in our functions, because we get the following error:
error TS-PheroError:
S145: ParserModel not implemented yet: `Date` (kind:178)
This is a minimale example to reproduce:
type Fred = {
createdAt: DateConstructor
}
export async function aad(): Promise<Fred> {
return {
createdAt: Date,
}
}