Really good features in v0.8! But looks like it's not possible to type a document anymore:

This is an important feature for typescript users like me :)
Another case is DocumentSearchResults, if you make it a discriminated union users can more elegantly determine its type when looping through it.