All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.helpers.fileUtils.d.ts Maven / Gradle / Ivy

Go to download

This library provides a set of common React components for use with the PatternFly reference implementation.

The newest version!
export declare enum fileReaderType {
    text = "text",
    dataURL = "dataURL"
}
/**
 * Read a file using the FileReader API, either as a plain text string or as a DataURL string.
 * Returns a promise which will resolve with the file contents as a string or reject with a DOMException.
 *
 * @param {File} fileHandle - File object to read
 * @param {fileReaderType} type - How to read it
 */
export declare function readFile(fileHandle: File, type: fileReaderType): Promise;
//# sourceMappingURL=fileUtils.d.ts.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy