style: many typescript v6 pending errors

This commit is contained in:
Neko Ayaka
2026-04-05 02:07:09 +08:00
parent 70a66292b2
commit 476ef2018f
30 changed files with 119 additions and 64 deletions
@@ -26,6 +26,7 @@ const {
checkMacOSPermission,
requestMacOSPermission,
} = useElectronScreenCapture(window.electron.ipcRenderer, sourcesOptions)
const focused = useWindowFocus()
async function checkPermissions() {
@@ -28,10 +28,7 @@ const sourcesOptions = ref<SourcesOptions>({
})
const { t } = useI18n()
const {
getSources,
selectWithSource,
} = useElectronScreenCapture(window.electron.ipcRenderer, sourcesOptions)
const { getSources, selectWithSource } = useElectronScreenCapture(window.electron.ipcRenderer, sourcesOptions)
const categoryOptions = [
{ label: 'Applications', value: 'applications', icon: 'i-solar:window-frame-line-duotone' },
@@ -90,13 +87,16 @@ function toObjectUrl(bytes: Uint8Array, mime: string) {
async function startCapture(source: SerializableDesktopCapturerSource) {
try {
await selectWithSource(() => source.id, async () => {
const stream = await navigator.mediaDevices.getDisplayMedia({
video: true,
audio: true,
})
activeStreams.value.push(stream)
})
await selectWithSource(
() => source.id,
async () => {
const stream = await navigator.mediaDevices.getDisplayMedia({
video: true,
audio: true,
})
activeStreams.value.push(stream)
},
)
}
catch (err) {
console.error('Error selecting source:', err)