export const isKeyInObject = (k: PropertyKey, o: T): k is keyof T => k in o;