Skip to content

Commit d67f655

Browse files
committed
Fix workflow granter allowing any names
1 parent 745942e commit d67f655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/workflow/workflow.granter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export function WorkflowEventGranter<
1515
W extends Workflow,
1616
EventClass extends W['eventResource'],
1717
>(workflow: () => W) {
18-
type State = Workflow['state'];
19-
type Names = Workflow['transition']['name'];
18+
type State = W['state'];
19+
type Names = W['transition']['name'];
2020

2121
abstract class WorkflowEventGranterClass extends ResourceGranter<EventClass> {
2222
get read() {

0 commit comments

Comments
 (0)