Sanity Library Reference Docs
    Preparing search index...

    Function isDocumentSchemaType

    • Returns wether or not the given type is a document type (eg that it was defined as type: 'document')

      Parameters

      • type: unknown

        Schema type to test

      Returns type is ObjectSchemaType

      True if type is a document type, false otherwise