mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 22:45:47 +00:00
16 lines
463 B
TypeScript
16 lines
463 B
TypeScript
![]() |
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';
|
||
|
|
||
|
type S = {
|
||
|
role: typeof role;
|
||
|
user: typeof user;
|
||
|
permission: typeof permission;
|
||
|
['content-type']: typeof contentType;
|
||
|
metrics: typeof metrics;
|
||
|
};
|
||
|
|
||
|
export function getService<T extends keyof S>(name: T): S[T];
|