dbos-inc / dbos-transact

The TypeScript framework for backends that scale
https://docs.dbos.dev
MIT License
335 stars 22 forks source link

InitContext should not expose DBOSExecutor directly #548

Open devhawk opened 1 month ago

devhawk commented 1 month ago

Seems like a mistake to expose DBOSExecutor implementation details to DBOSInitializer functions. We should change the declaration on InitContext to expose the dbosExec field as a DBOSExecutorContext interface