1 2 3 4 5 6 7
type Params = { [key: string]: string | string[] } export function getParam(params: Params, param: string): string { return params[param].toString(); }