James Lee
04/01/2021, 7:13 PMjest-mock-extended
and using mockDeep
to create typed mocks. However, after upgrading to latest 2.20.1 from 2.19.0, I'm receiving a typescript error.
Type of property 'OR' circularly references itself in mapped type '{ [K in keyof { AND?: Enumerable<WorkplaceScalarWhereWithAggregatesInput>; OR?: Enumerable<WorkplaceScalarWhereWithAggregatesInput>; ... 12 more ...; updatedAt?: string | ... 1 more ... | DateTimeWithAggregatesFilter; }]: Or<...> extends 1 ? { ...; }[K] extends infer TK ? GetHavingFields<...> : never : {} extends Fi...'.
James Lee
04/01/2021, 7:21 PMnikolasburk
James Lee
04/07/2021, 4:55 AMJames Lee
04/07/2021, 4:58 AMmockDeep
that can automatically created a typed mock. Anything manual would be really hard to write without explicit TS ignores all over the place.John McElreavey
04/22/2021, 9:08 AMJames Lee
04/23/2021, 8:32 PMJames Lee
04/23/2021, 8:38 PMJean-Philippe BOIS
05/16/2021, 12:41 PM{
"compilerOptions": {
[...]
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
}
}
James Lee
05/17/2021, 11:56 AMJames Lee
05/20/2021, 11:12 PMJames Lee
05/20/2021, 11:13 PM