We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move deps custom func to options as toDeps
zorko-platform/packages/util-use-case/lib/helpers/makeRunner.mjs
Line 31 in 142cb28
const DEFAULT_OPTIONS = { toParams: () => ({}), toContext: (req) => { const context = req && req.session ? req.session.context : {} const traceID = req.id return { ...context, traceID, } } , toResult: toResult_, toError: toError_ } const DEFAULT_DEPS = { log: new MockLogger(), createValidator: createValidator_, createUseCase: createUseCase_, // TODO: move deps custom func to options as toDeps provideUseCaseDeps: () => {} } /** * Returns function with encapsulated use case, ready to run with proper params * @params {ObjectConstructor} - class for particular use case, should be a UseCase or it's subclass
0e40321437aee910b8d2ce435d9cd84577b57ef7
It's better to go even futher
extend options with
toTraceOptions: ()=> {} // and toDeps: ()=> {}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
move deps custom func to options as toDeps
zorko-platform/packages/util-use-case/lib/helpers/makeRunner.mjs
Line 31 in 142cb28
0e40321437aee910b8d2ce435d9cd84577b57ef7
It's better to go even futher
extend options with
The text was updated successfully, but these errors were encountered: