File size contract enabling interoperability with external file size libraries.
Provides a standard way to convert any file size representation to bytes.
Allows this library to work with external size libraries without direct dependencies:
Byte wrapper objects
Kilobyte/Megabyte/Gigabyte representations
Custom file size classes
Implementers need only provide one method: convert their file size format to bytes.
Usage:
Implement IFileSize on your file size class by computing the TO_BYTES method
Pass instances to any daiso-core function accepting IFileSize
The library will call the method to get byte values for size calculations
File size contract enabling interoperability with external file size libraries. Provides a standard way to convert any file size representation to bytes.
Allows this library to work with external size libraries without direct dependencies:
Implementers need only provide one method: convert their file size format to bytes.
Usage:
IMPORT_PATH:
"@daiso-tech/core/file-size/contracts"