Sanity Library Reference Docs
    Preparing search index...

    Interface IntrinsicDefinitions

    IntrinsicDefinitions is a lookup map for "predefined" schema definitions. Schema types in IntrinsicDefinitions will have good type-completion and type-safety in defineType, defineField and defineArrayMember once the type property is provided.

    By default, IntrinsicDefinitions contains all standard Sanity schema types (array, string, number ect), but it is an interface and as such, open for extension.

    This type can be extended using declaration merging; this way new entries can be added. See defineType for examples on how this can be accomplished.

    defineType