phero icon indicating copy to clipboard operation
phero copied to clipboard

Support adding namespaces for your models and services`

Open kamilafsar opened this issue 2 years ago • 0 comments

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

kamilafsar avatar Sep 30 '22 11:09 kamilafsar