Sanity Library Reference Docs
    Preparing search index...

    Interface Schema

    interface Schema {
        getLocalTypeNames: () => string[];
        parent?: Schema;
    }
    Index

    Properties

    getLocalTypeNames: () => string[]

    Returns the types which were explicitly defined in this schema, as opposed to the types which were inherited from the parent.

    parent?: Schema

    Returns the parent schema.