export const filterId = (id?: T | null) => id != null ? { id } : undefined;