fix(client): support TypeScript exactOptionalPropertyTypes(#18647)

Merging
aniravi24:main
into
main
-25%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
3
NEW
0
DROPPED
0

Benchmarks

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
-19%
5.7 s
7.1 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
-25%
45.5 ms
60.8 ms
client generation 100 models with relations
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
+43%
61.3 s
42.8 s

Commits

Click on a commit to change the comparison range
chore: Remove unused variables and enable no-unused-vars rule (#18584) * chore: Remove unused variables and enable no-unused-vars rule Enables `@typesctipt-eslint/no-unused-vars` and fixes all violations. There are a couple of exceptions to the rule: 1. Spreads are ignored, making it possible to omit a property with object spread operator, i.e. this code valid: ```ts const { propToOmit, ...rest } = someObject ``` 2. In some cases, we want to have a function argument that won't be used in the function body. Main use-case for this is TS inference tests. In that case, argument may be prefixed with `_` and the rule won't trigger. * Update snapshots * Update more snapshots * Add comments
base
906d265
8 months ago by SevInf
-16%
fix: support TypeScript exactOptionalPropertyTypes Closes #10894
9b3d4fb
8 months ago by aniravi24
+53%
fix(client): support TypeScript exactOptionalPropertyTypes Closes #10894
55f3304
8 months ago by aniravi24
-63%
fix(client): support TypeScript exactOptionalPropertyTypes Closes #10894
26daad8
8 months ago by aniravi24
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.