v0.6.3
Patch Changes
-
ee8e163Thanks @kimjbstar! - Removes every remaininganyinsrc/and turns@typescript-eslint/no-explicit-anyback
into a hard error (it was temporarily downgraded to a warning when ESLint first landed).DecoratorComponent#paramswas typedany[], treated as genuinely unshapeable. It isn't:
every value actually pushed through it acrossconvertor.tsis either a ready-to-interpolate
code fragment (string/number/boolean) or a plain options object rendered via
Object.entries(). Now typed as an exportedDecoratorParam = string | number | boolean | objectunion --objectrather thanRecord<string, unknown>on purpose, since the latter
demands an index signature that a concrete interface likeSwaggerDecoratorParamsdoesn't
(and shouldn't) declare.ImportComponent#add(item: any)-- its one real call site (FileComponent#registerImport)
always passes astring, matching the class's ownitems: string[]field. Typed as such.PrismaClassGeneratorConfigwasPartial<Record<PrismaClassGeneratorOptionsKeys, any>>.
Every option is a plainbooleanexceptclientImportPath(string | string[]) -- named
explicitly as an interface instead of one union covering all of them, so
config.dryRun/config.useGraphQL/etc. type as real booleans everywhere they're read,
no cast needed.
No behavior change --
npm run build/testoutput is identical; this is strictly narrowing
existinganyslots to the types the values already had at runtime.