remove expected type from public api