type Interface = { [P in keyof T]: T[P] } export function createMock(members: Interface): T { return members }