File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,11 +109,11 @@ export class RestServer {
109109 * Normalize configuration with defaults
110110 */
111111 private normalizeConfig ( config : RestServerConfig ) : NormalizedRestServerConfig {
112- const api = config . api ?? { } as Partial < RestApiConfig > ;
113- const crud = config . crud ?? { } as Partial < CrudEndpointsConfig > ;
114- const metadata = config . metadata ?? { } as Partial < MetadataEndpointsConfig > ;
115- const batch = config . batch ?? { } as Partial < BatchEndpointsConfig > ;
116- const routes = config . routes ?? { } as Partial < RouteGenerationConfig > ;
112+ const api = ( config . api ?? { } ) as Partial < RestApiConfig > ;
113+ const crud = ( config . crud ?? { } ) as Partial < CrudEndpointsConfig > ;
114+ const metadata = ( config . metadata ?? { } ) as Partial < MetadataEndpointsConfig > ;
115+ const batch = ( config . batch ?? { } ) as Partial < BatchEndpointsConfig > ;
116+ const routes = ( config . routes ?? { } ) as Partial < RouteGenerationConfig > ;
117117
118118 return {
119119 api : {
You can’t perform that action at this time.
0 commit comments