// typed Object.keys export function keys(o: T): (keyof T)[] { return Object.keys(o) as (keyof T)[]; }