Define type for applyWriteOptions call