Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@types/react-speech-recognition
Advanced tools
TypeScript definitions for react-speech-recognition
npm install --save @types/react-speech-recognition
This package contains type definitions for react-speech-recognition (https://github.com/JamesBrill/react-speech-recognition#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-speech-recognition.
// Type definitions for react-speech-recognition 3.6
// Project: https://github.com/JamesBrill/react-speech-recognition#readme
// Definitions by: OleksandrYehorov <https://github.com/OleksandrYehorov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Command {
command: string | string[] | RegExp;
callback: (...args: any[]) => unknown;
isFuzzyMatch?: boolean | undefined;
matchInterim?: boolean | undefined;
fuzzyMatchingThreshold?: number | undefined;
bestMatchOnly?: boolean | undefined;
}
export interface ListeningOptions {
continuous?: boolean | undefined;
language?: string | undefined;
}
interface SpeechRecognition {
getRecognition(): SpeechRecognition | null;
startListening(options?: ListeningOptions): Promise<void>;
stopListening(): void;
abortListening(): void;
browserSupportsSpeechRecognition(): boolean;
}
export interface SpeechRecognitionOptions {
transcribing?: boolean | undefined;
clearTranscriptOnListen?: boolean | undefined;
commands?: ReadonlyArray<Command> | undefined;
}
export function useSpeechRecognition(
options?: SpeechRecognitionOptions,
): {
transcript: string;
interimTranscript: string;
finalTranscript: string;
listening: boolean;
resetTranscript: () => void;
};
declare const SpeechRecognition: SpeechRecognition;
export default SpeechRecognition;
These definitions were written by OleksandrYehorov.
FAQs
TypeScript definitions for react-speech-recognition
The npm package @types/react-speech-recognition receives a total of 31,604 weekly downloads. As such, @types/react-speech-recognition popularity was classified as popular.
We found that @types/react-speech-recognition demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.