Skip to content

Commit

Permalink
refactor: remove inversify binding decorators @provide
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaz committed Jul 4, 2024
1 parent 515a10e commit a566490
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/generate/templates/nonopinionated/entity.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";

@provide({{className}}{{schematic}})
export class {{className}}{{schematic}} {}
3 changes: 1 addition & 2 deletions src/generate/templates/nonopinionated/middleware.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ExpressoMiddleware } from "@expressots/core";
import { ExpressoMiddleware, provide } from "@expressots/core";
import { NextFunction, Request, Response } from "express";
import { provide } from "inversify-binding-decorators";

@provide({{className}}{{schematic}})
export class {{className}}{{schematic}} extends ExpressoMiddleware {
Expand Down
2 changes: 1 addition & 1 deletion src/generate/templates/nonopinionated/provider.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";

@provide({{className}}{{schematic}})
export class {{className}}{{schematic}} {}
2 changes: 1 addition & 1 deletion src/generate/templates/nonopinionated/usecase.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";

@provide({{className}}{{schematic}})
export class {{className}}{{schematic}} {}
2 changes: 1 addition & 1 deletion src/generate/templates/opinionated/entity.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";
import { randomUUID } from "node:crypto";

@provide({{className}}Entity)
Expand Down
3 changes: 1 addition & 2 deletions src/generate/templates/opinionated/middleware.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ExpressoMiddleware } from "@expressots/core";
import { ExpressoMiddleware, provide } from "@expressots/core";
import { NextFunction, Request, Response } from "express";
import { provide } from "inversify-binding-decorators";

@provide({{className}}Middleware)
export class {{className}}Middleware extends ExpressoMiddleware {
Expand Down
2 changes: 1 addition & 1 deletion src/generate/templates/opinionated/provider.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";

@provide({{className}}Provider)
export class {{className}}Provider {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";

@provide({{className}}UseCase)
export class {{className}}UseCase {
Expand Down
2 changes: 1 addition & 1 deletion src/generate/templates/opinionated/usecase-service.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";
import { I{{className}}RequestDTO, I{{className}}ResponseDTO } from "./{{fileName}}.dto";

@provide({{className}}UseCase)
Expand Down
2 changes: 1 addition & 1 deletion src/generate/templates/opinionated/usecase.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provide } from "inversify-binding-decorators";
import { provide } from "@expressots/core";

@provide({{className}}UseCase)
export class {{className}}UseCase {
Expand Down

0 comments on commit a566490

Please sign in to comment.