From 6d5a076d060101e7672a25cbf2b93fed5717cb58 Mon Sep 17 00:00:00 2001 From: Steven Monroe Date: Fri, 26 Apr 2024 02:15:07 -0500 Subject: [PATCH] Remove useSpeech types from index.d.ts Removes obsolete type definitions around useSpeech hook, which was removed in 2.2.0. Fixes #297 --- index.d.ts | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/index.d.ts b/index.d.ts index db01dc2..74977ee 100644 --- a/index.d.ts +++ b/index.d.ts @@ -92,30 +92,6 @@ export type RenderInfo = { timestamp: number; }; -export type SpeechOptions = { - lang?: string; - voice?: { - lang?: string; - name?: string; - }; - rate?: number; - pitch?: number; - volume?: number; -}; - -export type SpeechState = { - isPlaying: boolean; - status: "init" | "play" | "pause" | "stop"; - lang: string; - voiceInfo: { - lang: string; - name: string; - }; - rate: number; - pitch: number; - volume: number; -}; - declare module "@uidotdev/usehooks" { export function useBattery(): BatteryManager; @@ -238,8 +214,6 @@ declare module "@uidotdev/usehooks" { export function useSet(values?: T[]): Set; - export function useSpeech(text: string, options?: SpeechOptions): SpeechState; - export function useThrottle(value: T, delay: number): T; export function useToggle(