File tree Expand file tree Collapse file tree 9 files changed +48
-24
lines changed
packages/openapi-ts-tests/main/test/__snapshots__
custom-contract-name/@orpc
custom-contract-name/@orpc
custom-contract-name/@orpc Expand file tree Collapse file tree 9 files changed +48
-24
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ export const fooBarPutRpc = base.route({
4646 tags : [ 'fooBaz' , 'barBaz' ]
4747} ) . output ( zFooBarPutResponse ) ;
4848
49- export const router = { foo : {
49+ export const router = {
50+ foo : {
5051 get : getFooRpc ,
5152 fooPost : fooPostRpc ,
5253 fooPut : fooPutRpc ,
5354 getBar : getFooBarRpc ,
5455 fooBarPost : fooBarPostRpc ,
5556 fooBarPut : fooBarPutRpc
56- } } ;
57+ }
58+ } ;
5759
5860export type Router = typeof router ;
Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ export const fooBarPutContract = base.route({
4646 tags : [ 'fooBaz' , 'barBaz' ]
4747} ) . output ( zFooBarPutResponse ) ;
4848
49- export const contract = { foo : {
49+ export const contract = {
50+ foo : {
5051 get : getFooContract ,
5152 fooPost : fooPostContract ,
5253 fooPut : fooPutContract ,
5354 getBar : getFooBarContract ,
5455 fooBarPost : fooBarPostContract ,
5556 fooBarPut : fooBarPutContract
56- } } ;
57+ }
58+ } ;
5759
5860export type Contract = typeof contract ;
Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ export const fooBarPutContract = base.route({
4646 tags : [ 'fooBaz' , 'barBaz' ]
4747} ) . output ( zFooBarPutResponse ) ;
4848
49- export const router = { foo : {
49+ export const router = {
50+ foo : {
5051 get : getFooContract ,
5152 fooPost : fooPostContract ,
5253 fooPut : fooPutContract ,
5354 getBar : getFooBarContract ,
5455 fooBarPost : fooBarPostContract ,
5556 fooBarPut : fooBarPutContract
56- } } ;
57+ }
58+ } ;
5759
5860export type Router = typeof router ;
Original file line number Diff line number Diff line change @@ -96,16 +96,19 @@ export const getPostByIdRpc = base.route({
9696 tags : [ 'posts' ]
9797} ) . input ( zGetPostByIdData ) . output ( zGetPostByIdResponse ) ;
9898
99- export const router = { users : {
99+ export const router = {
100+ users : {
100101 get : getUsersRpc ,
101102 create : createUserRpc ,
102103 delete : deleteUserRpc ,
103104 getById : getUserByIdRpc ,
104105 update : updateUserRpc
105- } , posts : {
106+ } ,
107+ posts : {
106108 get : getPostsRpc ,
107109 create : createPostRpc ,
108110 getById : getPostByIdRpc
109- } } ;
111+ }
112+ } ;
110113
111114export type Router = typeof router ;
Original file line number Diff line number Diff line change @@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696 tags : [ 'posts' ]
9797} ) . input ( zGetPostByIdData ) . output ( zGetPostByIdResponse ) ;
9898
99- export const contract = { users : {
99+ export const contract = {
100+ users : {
100101 get : getUsersContract ,
101102 create : createUserContract ,
102103 delete : deleteUserContract ,
103104 getById : getUserByIdContract ,
104105 update : updateUserContract
105- } , posts : {
106+ } ,
107+ posts : {
106108 get : getPostsContract ,
107109 create : createPostContract ,
108110 getById : getPostByIdContract
109- } } ;
111+ }
112+ } ;
110113
111114export type Contract = typeof contract ;
Original file line number Diff line number Diff line change @@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696 tags : [ 'posts' ]
9797} ) . input ( zGetPostByIdData ) . output ( zGetPostByIdResponse ) ;
9898
99- export const router = { users : {
99+ export const router = {
100+ users : {
100101 get : getUsersContract ,
101102 create : createUserContract ,
102103 delete : deleteUserContract ,
103104 getById : getUserByIdContract ,
104105 update : updateUserContract
105- } , posts : {
106+ } ,
107+ posts : {
106108 get : getPostsContract ,
107109 create : createPostContract ,
108110 getById : getPostByIdContract
109- } } ;
111+ }
112+ } ;
110113
111114export type Router = typeof router ;
Original file line number Diff line number Diff line change @@ -96,16 +96,19 @@ export const getPostByIdRpc = base.route({
9696 tags : [ 'posts' ]
9797} ) . input ( zGetPostByIdData ) . output ( zGetPostByIdResponse ) ;
9898
99- export const router = { users : {
99+ export const router = {
100+ users : {
100101 get : getUsersRpc ,
101102 create : createUserRpc ,
102103 delete : deleteUserRpc ,
103104 getById : getUserByIdRpc ,
104105 update : updateUserRpc
105- } , posts : {
106+ } ,
107+ posts : {
106108 get : getPostsRpc ,
107109 create : createPostRpc ,
108110 getById : getPostByIdRpc
109- } } ;
111+ }
112+ } ;
110113
111114export type Router = typeof router ;
Original file line number Diff line number Diff line change @@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696 tags : [ 'posts' ]
9797} ) . input ( zGetPostByIdData ) . output ( zGetPostByIdResponse ) ;
9898
99- export const contract = { users : {
99+ export const contract = {
100+ users : {
100101 get : getUsersContract ,
101102 create : createUserContract ,
102103 delete : deleteUserContract ,
103104 getById : getUserByIdContract ,
104105 update : updateUserContract
105- } , posts : {
106+ } ,
107+ posts : {
106108 get : getPostsContract ,
107109 create : createPostContract ,
108110 getById : getPostByIdContract
109- } } ;
111+ }
112+ } ;
110113
111114export type Contract = typeof contract ;
Original file line number Diff line number Diff line change @@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696 tags : [ 'posts' ]
9797} ) . input ( zGetPostByIdData ) . output ( zGetPostByIdResponse ) ;
9898
99- export const router = { users : {
99+ export const router = {
100+ users : {
100101 get : getUsersContract ,
101102 create : createUserContract ,
102103 delete : deleteUserContract ,
103104 getById : getUserByIdContract ,
104105 update : updateUserContract
105- } , posts : {
106+ } ,
107+ posts : {
106108 get : getPostsContract ,
107109 create : createPostContract ,
108110 getById : getPostByIdContract
109- } } ;
111+ }
112+ } ;
110113
111114export type Router = typeof router ;
You can’t perform that action at this time.
0 commit comments