type PartialByKeys = Omit & Partial>; // Example Usage: interface User { id: string; name: string; email: string; address?: string; } type UserUpdate = PartialByKeys; // UserUpdate will be: // { // id: string; // address?: string; // name?: string; // email?: string; // } const userUpdate: UserUpdate = { id: '123', name: 'Jane Doe', // 'name' is now optional }; // const incompleteUpdate: UserUpdate = {}; // Error: Property 'id' is missing const fullUpdate: UserUpdate = { id: '456', name: 'Alice', email: 'alice@example.com', address: '123 Elm St' };