
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@types/react-file-reader-input
Advanced tools
TypeScript definitions for react-file-reader-input
npm install --save @types/react-file-reader-input
This package contains type definitions for react-file-reader-input (https://github.com/ngokevin/react-file-reader-input).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-file-reader-input.
import * as React from "react";
declare class FileInput extends React.Component<FileInput.Props> {
}
declare namespace FileInput {
type Format = "buffer" | "binary" | "url" | "text";
type Result = [ProgressEvent, File];
interface Props extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
/**
* what format the `FileReader` should read the file as
* (i.e., `'buffer'`, `'binary'`, `'url'`, `'text'`).
*
* Defaults to `'url'`.
*/
as?: Format | undefined;
/**
* Callback function called when the files are chosen by the user.
*
* Results will be an array of arrays, the size of which depending
* on how many files were selected.
*
* Each result will be an array of two items:
*
* `progressEvent`: `result[0]` is a `ProgressEvent` object.
* You can retrieve the raw results at `progressEvent.target.result`
* among other things.
*
* `file`: `result[1]` is a `File` object. You can retrieve the file name
* at file.name among other things.
*
* @param event The event that triggered file changes
* @param results The array of files
*/
onChange(event: React.ChangeEvent<HTMLInputElement>, results: Result[]): void;
}
}
export = FileInput;
These definitions were written by Dmitry Rogozhny, Ali Taheri, and bjoluc.
FAQs
TypeScript definitions for react-file-reader-input
The npm package @types/react-file-reader-input receives a total of 535 weekly downloads. As such, @types/react-file-reader-input popularity was classified as not popular.
We found that @types/react-file-reader-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.