Restate Typescript SDK
    Preparing search index...

    Variable createObjectSharedHandlerConst

    createObjectSharedHandler: {
        <O, I = void, TState extends TypedState = UntypedState>(
            opts: ObjectHandlerOpts<I, O>,
            fn: (ctx: ObjectSharedContext<TState>, input: I) => Promise<O>,
        ): I extends void
            ? (ctx: ObjectSharedContext) => Promise
            : (ctx: ObjectSharedContext<TState>, input: I) => Promise<O>;
        <O, I = void, TState extends TypedState = UntypedState>(
            fn: (ctx: ObjectSharedContext<TState>, input: I) => Promise<O>,
        ): I extends void
            ? (ctx: ObjectSharedContext) => Promise
            : (ctx: ObjectSharedContext<TState>, input: I) => Promise<O>;
    } = handlers.object.shared

    Type Declaration