Skip to content
New issue

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

Support adding namespaces for your models and services` #48

Open
4 tasks
kamilafsar opened this issue Sep 30, 2022 · 0 comments
Open
4 tasks

Support adding namespaces for your models and services` #48

kamilafsar opened this issue Sep 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kamilafsar
Copy link
Contributor

kamilafsar commented Sep 30, 2022

export namespace todo.aap {
    export const service = createService(
        {
            list,
            create,
            update,
            updateTodoStatus,
            markAllAsDone,
            remove,
        },
        {
            middleware: [authenticate],
        }
    );
}
  • Let the user decide what the namespace is of their services and models based on the "export namespace" syntax
  • generate classes/interfaces for the services
  • when there's no namespace export, all services, and models will go into the global namespace
  • remove domain namespace / code to calculate shared models
@Jpunt Jpunt added the enhancement New feature or request label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants