converting master detail: workaround for typescript issue