Don't assume that `'type'` will be valid, don't use it if it's not `'del'` or `'put'`. If a client supplies an entry with a bad type then I *think* it's best to assume the default `'type'` for this WriteStream rather than reject it (open to other thoughts on this).