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
When using object index signature, known properties get | null type and ref.key suggestions are missing. Without index signature everything is working correctly.
Example with correct ref.key suggestions and correct brand slug field type:
What about the brand.slug type from the second example link? It's string | null but from the type it can only be a string. Can this somehow be fixed or it's also not possible?
--- added ---
Managed to get it working when key is not of a string type.
Maybe typescript overrides slug definition when is set as string.
When using object index signature, known properties get
| null
type andref
.key
suggestions are missing. Without index signature everything is working correctly.Example with correct
ref
.key
suggestions and correctbrand
slug field type:https://kyse.link/?p=s&i=MmozcfIdl4l3HrV97ncr
Same example without
ref
.key
suggestions and with incorrectbrand
slug field type (it can't benull
):https://kyse.link/?p=s&i=PlNhdkgf4RggHGJnuqVX
kysely 0.27.2
related zod issue - #850
The text was updated successfully, but these errors were encountered: