import * as upload from '../services/Upload'; type S = { upload: typeof upload; }; export function getService(name: T): S[T];