10 lines
270 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
};
export function getService<T extends keyof S>(name: T): S[T];