Restate Typescript SDK
    Preparing search index...

    Interface SharedState<TState>

    Read-only state, for handlers running under an ObjectSharedContext or WorkflowSharedContext.

    interface SharedState<TState extends TypedState = UntypedState> {
        get<TValue, TKey extends string | number | symbol = string>(
            name: TState extends UntypedState ? string : TKey,
            serde?: Serde<TState extends UntypedState ? TValue : TState[TKey]>,
        ): Future<(TState extends UntypedState ? TValue : TState[TKey]) | null>;
        keys(): Future<string[]>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Methods

    Methods