refactor(vtt-thumbnail): [PKG-VTT-THUMB-04] type runtime data and resource boundaries

This commit is contained in:
Harvey Zhao committed 2026-09-13 09:03:20 +08:00
1 parent 80588a3046
commit 7f2906ae52
22 files changed
+2940 -75

No files matched your search

@@ -0,0 +1,7 @@
import type { Thumbnail } from './types'
import parseVtt from './parseVtt'
// Preserve the historical source helper while registration owns its requests.
export default async function getVttArray(vttUrl = ''): Promise<Thumbnail[]> {
return parseVtt(await (await fetch(vttUrl)).text(), vttUrl)
}