The return type of resourceToAsset. When the asset is a file, returns the number of bytes written. When the asset is a buffer, returns an object with the buffer and bytes written.
The return type of resourceToAsset. When the asset is a file, returns the number of bytes written. When the asset is a buffer, returns an object with the buffer and bytes written.