Skip to content

Commit

Permalink
Remove useSpeech types from index.d.ts
Browse files Browse the repository at this point in the history
Removes obsolete type definitions around useSpeech hook, which was removed in 2.2.0.

Fixes uidotdev#297
  • Loading branch information
smonroe4242 committed Apr 26, 2024
1 parent dfa6623 commit 6d5a076
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -238,8 +214,6 @@ declare module "@uidotdev/usehooks" {

export function useSet<T>(values?: T[]): Set<T>;

export function useSpeech(text: string, options?: SpeechOptions): SpeechState;

export function useThrottle<T>(value: T, delay: number): T;

export function useToggle(
Expand Down

0 comments on commit 6d5a076

Please sign in to comment.