10 lines
282 B
TypeScript
Raw Normal View History

2021-08-19 22:27:00 +02:00
import * as upload from '../services/upload';
import * as imageManipulation from '../services/image-manipulation';
2021-07-08 22:07:52 +02:00
type S = {
upload: typeof upload;
2021-08-19 22:27:00 +02:00
['image-manipulation']: typeof imageManipulation;
2021-07-08 22:07:52 +02:00
};
2021-08-20 15:23:02 +02:00
export function getService<T extends keyof S>(name: T): ReturnType<S[T]>;