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
{{ message }}
This repository was archived by the owner on Aug 18, 2023. It is now read-only.
Using e.g. vue-tsc to get typechecking in Vue templates the example in the readme doesn't actually typecheck. Specifically you'll get an error that the key block is missing from the types object nested in serializers. This seems to be because block is defined as a required key here: https://github.com/rdunk/sanity-blocks-vue-component/blob/master/src/types.ts#L77. Though the serializers prop is a Partial<Serializers>, Partial doesn't extend to nested objects, so it doesn't stop block from being required.
The text was updated successfully, but these errors were encountered:
henribru
changed the title
Example in readme doesn't typecheck due
Example in readme doesn't typecheck
Jul 8, 2021
Using e.g. vue-tsc to get typechecking in Vue templates the example in the readme doesn't actually typecheck. Specifically you'll get an error that the key
block
is missing from thetypes
object nested inserializers
. This seems to be becauseblock
is defined as a required key here: https://github.com/rdunk/sanity-blocks-vue-component/blob/master/src/types.ts#L77. Though theserializers
prop is aPartial<Serializers>
,Partial
doesn't extend to nested objects, so it doesn't stopblock
from being required.The text was updated successfully, but these errors were encountered: