From 09a645c0fe25614dabeaf85cc87d826211ed08a6 Mon Sep 17 00:00:00 2001 From: Beqa Date: Wed, 1 Oct 2025 13:54:50 +0400 Subject: [PATCH] fix: derive send function type from machine --- packages/react-robot/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-robot/index.d.ts b/packages/react-robot/index.d.ts index d02754f0..09ad5732 100644 --- a/packages/react-robot/index.d.ts +++ b/packages/react-robot/index.d.ts @@ -1,11 +1,11 @@ declare module 'react-robot' { - import type {Machine, SendFunction, Service} from 'robot3'; + import type {Machine, SendFunction, Service, GetMachineTransitions} from 'robot3'; export function useMachine( machine: M, initialContext?: M['context'] ): [ M['state'] & {context: M['context']}, - SendFunction, + SendFunction>, Service ]; }