export function removeNull(val: T | null | undefined): T | undefined { return val === null ? undefined : val; }