const someScope = scope({
Endpoint: {
response: {
name: 'string',
age: 'number',
},
params: {
body: {
name: 'string',
age: 'number',
},
},
},
}).export()
const Endpoint = someScope.Endpoint
// Should be equivalent to type({ name: 'string', age: 'number' })
const Body = Endpoint.params.body
const someScope = scope({
Endpoint: {
response: {
name: 'string',
age: 'number',
},
params: {
body: {
name: 'string',
age: 'number',
},
},
},
}).export()
const Endpoint = someScope.Endpoint
// Should be equivalent to type({ name: 'string', age: 'number' })
const Body = Endpoint.params.body