Setu-TS
    Preparing search index...

    Interface IIdempotencyObjectState

    The storage surface IdempotencyObjectCore needs.

    Written here rather than imported from the platform: cloudflare:workers is unresolvable by Deno, and the published IDurableObjectStorage is deliberately NOT widened — this facade adds setAlarm, which only the idempotency object uses.

    0.9.0

    interface IIdempotencyObjectState {
        storage: {
            delete(key: string): Promise<boolean>;
            get<T>(key: string): Promise<T | undefined>;
            put<T>(key: string, value: T): Promise<void>;
            setAlarm(scheduledTimeMs: number): Promise<void>;
        };
    }
    Index
    storage: {
        delete(key: string): Promise<boolean>;
        get<T>(key: string): Promise<T | undefined>;
        put<T>(key: string, value: T): Promise<void>;
        setAlarm(scheduledTimeMs: number): Promise<void>;
    }

    The object's transactional storage, plus the alarm it schedules.

    Type Declaration