Skip to content

Commit

Permalink
fix(useSpeechSynthesis): rename type Status to `UseSpeechSynthesisS…
Browse files Browse the repository at this point in the history
…tatus`
  • Loading branch information
antfu committed Jul 17, 2022
1 parent c57ddc1 commit db61fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useSpeechSynthesis/index.ts
Expand Up @@ -6,7 +6,7 @@ import { useSupported } from '../useSupported'
import type { ConfigurableWindow } from '../_configurable'
import { defaultWindow } from '../_configurable'

export type Status = 'init' | 'play' | 'pause' | 'end'
export type UseSpeechSynthesisStatus = 'init' | 'play' | 'pause' | 'end'

export interface UseSpeechSynthesisOptions extends ConfigurableWindow {
/**
Expand Down Expand Up @@ -58,7 +58,7 @@ export function useSpeechSynthesis(text: MaybeComputedRef<string>, options: UseS
const isSupported = useSupported(() => synth)

const isPlaying = ref(false)
const status = ref<Status>('init')
const status = ref<UseSpeechSynthesisStatus>('init')

const spokenText = resolveRef(text || '')
const lang = resolveRef(options.lang || 'en-US')
Expand Down

0 comments on commit db61fce

Please sign in to comment.