Skip to content

Commit 9784eca

Browse files
committed
fix: pass-through of the Props and Bindings to the Service type
1 parent 6afdd33 commit 9784eca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

@alchemy.run/effect/src/runtime.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export interface Runtime<
6565
{ handle }: { handle: Handler },
6666
): <const Props extends this["props"]>(
6767
props: Props,
68-
) => Service<ID, this, Handler, Extract<Props, RuntimeProps<this, any>>>;
68+
// @ts-expect-error
69+
) => Service<ID, this, Handler, Props>;
6970
}
7071

7172
export const Runtime =
@@ -126,5 +127,5 @@ export const Runtime =
126127
},
127128
},
128129
) as unknown as Self;
129-
return self;
130+
return self as any;
130131
};

0 commit comments

Comments
 (0)