| 
									
										
										
										
											2021-06-28 12:34:29 +02:00
										 |  |  | import * as role from '../services/role'; | 
					
						
							|  |  |  | import * as user from '../services/user'; | 
					
						
							|  |  |  | import * as permission from '../services/permission'; | 
					
						
							|  |  |  | import * as contentType from '../services/content-type'; | 
					
						
							|  |  |  | import * as metrics from '../services/metrics'; | 
					
						
							| 
									
										
										
										
											2021-07-28 15:32:21 +02:00
										 |  |  | import * as token from '../services/token'; | 
					
						
							|  |  |  | import * as auth from '../services/auth'; | 
					
						
							| 
									
										
										
										
											2021-08-26 14:37:55 +02:00
										 |  |  | import * as apiToken from '../services/api-token'; | 
					
						
							| 
									
										
										
										
											2021-06-28 12:34:29 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | type S = { | 
					
						
							|  |  |  |   role: typeof role; | 
					
						
							|  |  |  |   user: typeof user; | 
					
						
							|  |  |  |   permission: typeof permission; | 
					
						
							| 
									
										
										
										
											2021-08-27 16:23:19 +02:00
										 |  |  |   'content-type': typeof contentType; | 
					
						
							| 
									
										
										
										
											2021-07-28 15:32:21 +02:00
										 |  |  |   token: typeof token; | 
					
						
							|  |  |  |   auth: typeof auth; | 
					
						
							| 
									
										
										
										
											2021-06-28 12:34:29 +02:00
										 |  |  |   metrics: typeof metrics; | 
					
						
							| 
									
										
										
										
											2021-08-27 16:23:19 +02:00
										 |  |  |   'api-token': typeof apiToken; | 
					
						
							| 
									
										
										
										
											2021-06-28 12:34:29 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-20 15:23:02 +02:00
										 |  |  | export function getService<T extends keyof S>(name: T): ReturnType<S[T]>; |