Restate Typescript SDK
    Preparing search index...

    Variable createObjectHandlerConst

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

    Type Declaration