You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
}
}
The text was updated successfully, but these errors were encountered:
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:This is a minimale example to reproduce:
The text was updated successfully, but these errors were encountered: