Sanity Library Reference Docs
    Preparing search index...

    Variable setConst

    set: <const T>(value: T) => SetOp<T>

    Creates a set operation with the provided value.

    Type declaration

    const setFoo = set('foo')
    const setEmptyArray = set([])