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
ACK. For the time being the generated types are unusable however, the way
they are generated. I think unioning with unknown is not ideal but in the
meantime, until there is a better way to to express this, it might be
better than what is currently generated?
A schema of:
resolves to:
which is an incompatible type, as
$schema
clearly doesn't follow{ [k: string]: unknown }
.You can see the error in the typescript playground.
I encountered this here: https://dprint.dev/schemas/v0.json which is the schema for the dprint configuration. (cc @dsherret)
A potential fix is to generate
additionalProperties
as:Test code:
The text was updated successfully, but these errors were encountered: