[fix] remove need for type to be required
[doc] update example