Skip to content

Commit

Permalink
Revert "fix: type eslint"
Browse files Browse the repository at this point in the history
This reverts commit d932c9e.
  • Loading branch information
jaequery committed Aug 22, 2024
1 parent d932c9e commit f3677ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions apps/server/src/post/post.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { PostService } from '@server/post/post.service';
import { TrpcExceptionFilter } from '@server/trpc/trpc.exception-handler';
import { TrpcService } from '@server/trpc/trpc.service';
import { Roles } from '@shared/interfaces';
import { Router } from '@trpc/server';
import {
PostCommentCreateDto,
PostCommentRemoveDto,
Expand All @@ -22,7 +21,7 @@ export class PostRouter {
private readonly trpcService: TrpcService,
private readonly postService: PostService,
) {}
apply(): { postRouter: Router<any> } {
apply() {
return {
postRouter: this.trpcService.trpc.router({
// creates a post from dashboard
Expand Down
3 changes: 1 addition & 2 deletions apps/server/src/role/role.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
RoleRemoveDto,
RoleUpdateDto,
} from './role.dto';
import { Router } from '@trpc/server';

@Injectable()
@UseFilters(new TrpcExceptionFilter())
Expand All @@ -19,7 +18,7 @@ export class RoleRouter {
private readonly trpcService: TrpcService,
private readonly roleService: RoleService,
) {}
apply(): { roleRouter: Router<any> } {
apply() {
return {
roleRouter: this.trpcService.trpc.router({
// creates a role from dashboard
Expand Down
3 changes: 1 addition & 2 deletions apps/server/src/trpc/trpc.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { PostRouter } from '@server/post/post.router';
import { RoleRouter } from '@server/role/role.router';
import { TrpcService, createContext } from '@server/trpc/trpc.service';
import { UserRouter } from '@server/user/user.router';
import { Router } from '@trpc/server';
import * as trpcExpress from '@trpc/server/adapters/express';

@Injectable()
Expand All @@ -15,7 +14,7 @@ export class TrpcRouter {
private readonly roleRouter: RoleRouter,
) {}

appRouter: Router<any> = this.trpcService.trpc.router({
appRouter = this.trpcService.trpc.router({
...this.userRouter.apply(),
...this.postRouter.apply(),
...this.roleRouter.apply(),
Expand Down
3 changes: 1 addition & 2 deletions apps/server/src/user/user.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { TrpcExceptionFilter } from '@server/trpc/trpc.exception-handler';
import { TrpcService } from '@server/trpc/trpc.service';
import { UserService } from '@server/user/user.service';
import { Roles } from '@shared/interfaces';
import { Router } from '@trpc/server';
import {
UserCreateDto,
UserFindAllDto,
Expand All @@ -23,7 +22,7 @@ export class UserRouter {
private readonly trpcService: TrpcService,
private readonly userService: UserService,
) {}
apply(): { userRouter: Router<any> } {
apply() {
return {
userRouter: this.trpcService.trpc.router({
// login user
Expand Down

0 comments on commit f3677ef

Please sign in to comment.