Skip to content

Commit

Permalink
fix(useSpeechSynthesis)!: rename type SpeechSynthesisOptions to `Us…
Browse files Browse the repository at this point in the history
…eSpeechSynthesisOptions` (#1890)
  • Loading branch information
okxiaoliang4 committed Jul 13, 2022
1 parent 36f336b commit 42516eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useSpeechSynthesis/index.ts
Expand Up @@ -10,7 +10,7 @@ export type Status = 'init' | 'play' | 'pause' | 'end'

export type VoiceInfo = Pick<SpeechSynthesisVoice, 'lang' | 'name'>

export interface SpeechSynthesisOptions extends ConfigurableWindow {
export interface UseSpeechSynthesisOptions extends ConfigurableWindow {
/**
* Language for SpeechSynthesis
*
Expand Down Expand Up @@ -48,7 +48,7 @@ export interface SpeechSynthesisOptions extends ConfigurableWindow {
* @see https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis SpeechSynthesis
* @param options
*/
export function useSpeechSynthesis(text: MaybeComputedRef<string>, options: SpeechSynthesisOptions = {}) {
export function useSpeechSynthesis(text: MaybeComputedRef<string>, options: UseSpeechSynthesisOptions = {}) {
const {
pitch = 1,
rate = 1,
Expand Down

0 comments on commit 42516eb

Please sign in to comment.