From db61fce9be36aa57f5a2028cd2af494807406016 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 17 Jul 2022 15:33:25 +0800 Subject: [PATCH] fix(useSpeechSynthesis): rename type `Status` to `UseSpeechSynthesisStatus` --- packages/core/useSpeechSynthesis/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/useSpeechSynthesis/index.ts b/packages/core/useSpeechSynthesis/index.ts index b63fec48350..35043410fdb 100644 --- a/packages/core/useSpeechSynthesis/index.ts +++ b/packages/core/useSpeechSynthesis/index.ts @@ -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 { /** @@ -58,7 +58,7 @@ export function useSpeechSynthesis(text: MaybeComputedRef, options: UseS const isSupported = useSupported(() => synth) const isPlaying = ref(false) - const status = ref('init') + const status = ref('init') const spokenText = resolveRef(text || '') const lang = resolveRef(options.lang || 'en-US')