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
executor()
UseCaseExecutor#executor has been introduced as a workaround of " TypeScript: improve UseCase#execute typing #107 ".
UseCaseExecutor#executor
In Almin 0.18+, UseCaseExecutor#execute type will be complete in #355
UseCaseExecutor#execute
📝 Require TypeScript 3.0+
The user should use UseCaseExecutor#execute instead of UseCaseExecutor#executor.
Before: executor()
import { UseCase, Context } from "almin"; class MyUseCaseA extends UseCase { execute(_a: string) {} } const context = new Context({ store: createStore({ name: "test" }) }); // executor context.useCase(new MyUseCaseA()).executor(useCase => useCase.execute("A"));
After: execute()
execute()
import { UseCase, Context } from "almin"; class MyUseCaseA extends UseCase { execute(_a: string) {} } const context = new Context({ store: createStore({ name: "test" }) }); //execute context.useCase(new MyUseCaseA()).execute("A");
almin/migration-tools support this changes.
Apply 0.17.x → 0.18.x migration or --script "executor-to-execute"
--script "executor-to-execute"
# TypeScript $ almin-migration-tools "src/**/*.{ts,tsx}" --script "executor-to-execute" # JavaScript $ almin-migration-tools "src/**/*.{js}" --script "executor-to-execute"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
UseCaseExecutor#executor
has been introduced as a workaround of " TypeScript: improve UseCase#execute typing #107 ".In Almin 0.18+,
UseCaseExecutor#execute
type will be complete in #355The user should use
UseCaseExecutor#execute
instead ofUseCaseExecutor#executor
.Changes
Before:
executor()
After:
execute()
Migration
almin/migration-tools support this changes.
Apply 0.17.x → 0.18.x migration or
--script "executor-to-execute"
Task
UseCaseExecutor#executor
fix(almin): makeUseCaseExecutor#execute
type complete #355UseCaseExecutor#execute
type complete #355The text was updated successfully, but these errors were encountered: