TypeScript Type Error: Workflows Not Accessible via `internal` API
Issue
When trying to reference workflows defined withworkflowManager.define() through the internal API, TypeScript throws an error saying the workflow property doesn't exist, even though the code works perfectly at runtime.Code Example
Error Message
Expected Behavior
TypeScript should recognize workflows defined withworkflowManager.define() when accessed via internal.workflows.*.private.*, similar to how it recognizes queries, mutations, and actions.Actual Behavior
--
internal API- The
FilterApi type for internal only includes FunctionReference types, but workflows aren't FunctionReference typesWorkaround
Currently using@ts-expect-error to suppress the type error:Question
Is this a known limitation, or is there a way to properly type workflows so they're recognized through theinternal API? This seems like it could affect all workflows, not just this one.Thanks!
