Sanity Library Reference Docs
    Preparing search index...

    Variable decConst

    dec: <const N extends number = 1>(amount?: N) => DecOp<N>

    Creates a dec (decrement) operation with the provided amount.

    Type declaration

    const decBy1 = dec()
    const decBy10 = dec(10)