fixing recursive types possibly infinite for immer Draft type