mirror of
https://github.com/strapi/strapi.git
synced 2025-07-16 21:41:59 +00:00
10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
import * as upload from '../services/upload';
|
|
import * as imageManipulation from '../services/image-manipulation';
|
|
|
|
type S = {
|
|
upload: typeof upload;
|
|
['image-manipulation']: typeof imageManipulation;
|
|
};
|
|
|
|
export function getService<T extends keyof S>(name: T): ReturnType<S[T]>;
|