
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-mic
Advanced tools
TypeScript definitions for react-mic
npm install --save @types/react-mic
This package contains type definitions for react-mic (https://hackingbeauty.github.io/react-mic).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-mic.
import * as React from "react";
/**
* Record a user's voice and display as an oscillation (or frequency bars).
*/
export class ReactMic extends React.PureComponent<ReactMicProps> {}
/**
* The object sent when the recording stops
*/
export interface ReactMicStopEvent {
blob: Blob;
startTime: number;
stopTime: number;
option: {
audioBitsPerSecond: number;
mimeType: string;
};
blobURL: string;
}
export interface ReactMicProps {
/** Set to true to begin recording */
record?: boolean | undefined;
/** Available in React-Mic-Plus upgrade only */
pause?: boolean | undefined;
visualSetting?: "sinewave" | "frequencyBars" | undefined;
className?: string | undefined;
/** Callback that is executed when audio stops recording */
onStop?: ((recordedData: ReactMicStopEvent) => void) | undefined;
/** Callback that is executed when chunk of audio is available */
onData?: ((recordedData: Blob) => void) | undefined;
/** defaults -> "audio/webm". Set to "audio/wav" for WAV or "audio/mp3" for MP3 audio format (available in React-Mic-Gold) */
mimeType?: "audio/webm" | "audio/wav" | undefined;
/** Sound wave color */
strokeColor?: string | undefined;
/** Background color */
backgroundColor?: string | undefined;
/** Specify 1 for mono, defaults -> 2 (stereo) */
channelCount?: 1 | 2 | undefined;
/** Enables/disables echo cancellation, defaults -> false */
echoCancellation?: boolean | undefined;
/** Enables/disables auto gain control, defaults -> false */
autoGainControl?: boolean | undefined;
/** Enables/disables background noise suppression, defaults -> false */
noiseSuppression?: boolean | undefined;
}
These definitions were written by mikaello.
FAQs
TypeScript definitions for react-mic
The npm package @types/react-mic receives a total of 1,423 weekly downloads. As such, @types/react-mic popularity was classified as popular.
We found that @types/react-mic 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.