-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
So while working on the new RenderService i've run into a snag and typescript is incorrectly infering the type
so

Here when i call the template from an external service ( template ) typescript only infers the scalars rather than transformers as well
This is the inferred type
createdAt: Date;
updatedAt: Date;
id: bigint;
type: TemplateType;
useCase: string;
body: string;
meta: Prisma.JsonValue;
user: string;
tag: string[];
}, unknown> & {}
And if i call it directly in the Service itself like this

this is the inferred type
transformers: ({
transformer: GetResult<{
createdAt: Date;
updatedAt: Date;
id: bigint;
type: TransformerType;
meta: Prisma.JsonValue;
sampleData: Prisma.JsonValue;
functionDID: string;
}, unknown> & {};
} & GetResult<...> & {})[];
} & GetResult<...> & {}
could i get some possible solutions here thanks!!
Metadata
Metadata
Assignees
Labels
No labels