Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkb committed May 10, 2023
1 parent 8babac0 commit 98e151f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions integration/nestjs-metadata-grpc-js/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export interface HeroServiceClient {
}

export interface HeroServiceController {
findOneHero(request: HeroById, metadata?: Metadata): Promise<Hero> | Observable<Hero> | Hero;
findOneHero(request: HeroById, metadata?: Metadata): Promise<Hero> | Hero;

findOneVillain(request: VillainById, metadata?: Metadata): Promise<Villain> | Observable<Villain> | Villain;
findOneVillain(request: VillainById, metadata?: Metadata): Promise<Villain> | Villain;

findManyVillain(request: Observable<VillainById>, metadata?: Metadata): Observable<Villain>;
}
Expand Down
4 changes: 2 additions & 2 deletions integration/nestjs-metadata-restparameters/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export interface HeroServiceClient {
}

export interface HeroServiceController {
findOneHero(request: HeroById, metadata: Metadata, ...rest: any): Promise<Hero> | Observable<Hero> | Hero;
findOneHero(request: HeroById, metadata: Metadata, ...rest: any): Promise<Hero> | Hero;

findOneVillain(
request: VillainById,
metadata: Metadata,
...rest: any
): Promise<Villain> | Observable<Villain> | Villain;
): Promise<Villain> | Villain;

findManyVillain(request: Observable<VillainById>, metadata: Metadata, ...rest: any): Observable<Villain>;
}
Expand Down
4 changes: 2 additions & 2 deletions integration/nestjs-metadata/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export interface HeroServiceClient {
}

export interface HeroServiceController {
findOneHero(request: HeroById, metadata?: Metadata): Promise<Hero> | Observable<Hero> | Hero;
findOneHero(request: HeroById, metadata?: Metadata): Promise<Hero> | Hero;

findOneVillain(request: VillainById, metadata?: Metadata): Promise<Villain> | Observable<Villain> | Villain;
findOneVillain(request: VillainById, metadata?: Metadata): Promise<Villain> | Villain;

findManyVillain(request: Observable<VillainById>, metadata?: Metadata): Observable<Villain>;
}
Expand Down
4 changes: 2 additions & 2 deletions integration/nestjs-restparameters/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export interface HeroServiceClient {
}

export interface HeroServiceController {
findOneHero(request: HeroById, ...rest: any): Promise<Hero> | Observable<Hero> | Hero;
findOneHero(request: HeroById, ...rest: any): Promise<Hero> | Hero;

findOneVillain(request: VillainById, ...rest: any): Promise<Villain> | Observable<Villain> | Villain;
findOneVillain(request: VillainById, ...rest: any): Promise<Villain> | Villain;

findManyVillain(request: Observable<VillainById>, ...rest: any): Observable<Villain>;
}
Expand Down
2 changes: 1 addition & 1 deletion integration/nestjs-simple-restparameters/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface HeroServiceClient {
}

export interface HeroServiceController {
findCurrentUser(request: Empty, ...rest: any): Promise<User> | Observable<User> | User;
findCurrentUser(request: Empty, ...rest: any): Promise<User> | User;
}

export function HeroServiceControllerMethods() {
Expand Down
6 changes: 3 additions & 3 deletions integration/nestjs-simple-usedate/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export interface HeroServiceClient {
export interface HeroServiceController {
addOneHero(request: Hero): void;

findOneHero(request: HeroById): Promise<Hero> | Observable<Hero> | Hero;
findOneHero(request: HeroById): Promise<Hero> | Hero;

findOneVillain(request: VillainById): Promise<Villain> | Observable<Villain> | Villain;
findOneVillain(request: VillainById): Promise<Villain> | Villain;

findManyVillain(request: Observable<VillainById>): Observable<Villain>;

findManyVillainStreamIn(request: Observable<VillainById>): Promise<Villain> | Observable<Villain> | Villain;
findManyVillainStreamIn(request: Observable<VillainById>): Promise<Villain> | Villain;

findManyVillainStreamOut(request: VillainById): Observable<Villain>;
}
Expand Down
6 changes: 3 additions & 3 deletions integration/nestjs-simple/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ export interface HeroServiceClient {
export interface HeroServiceController {
addOneHero(request: Hero): void;

findOneHero(request: HeroById): Promise<Hero> | Observable<Hero> | Hero;
findOneHero(request: HeroById): Promise<Hero> | Hero;

findOneVillain(request: VillainById): Promise<Villain> | Observable<Villain> | Villain;
findOneVillain(request: VillainById): Promise<Villain> | Villain;

findManyVillain(request: Observable<VillainById>): Observable<Villain>;

findManyVillainStreamIn(request: Observable<VillainById>): Promise<Villain> | Observable<Villain> | Villain;
findManyVillainStreamIn(request: Observable<VillainById>): Promise<Villain> | Villain;

findManyVillainStreamOut(request: VillainById): Observable<Villain>;
}
Expand Down

0 comments on commit 98e151f

Please sign in to comment.