typescript omit type from union