mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 13:58:20 +00:00
fix(core): narrow wrapped seek function type
This commit is contained in:
@@ -201,7 +201,7 @@ export function installPositionEditsSeekReapply(win: Window & typeof globalThis)
|
||||
|
||||
const isWrapped = (fn: unknown): fn is SeekFunction =>
|
||||
typeof fn === "function" &&
|
||||
(wrappedSeekFunctions.has(fn) ||
|
||||
(wrappedSeekFunctions.has(fn as SeekFunction) ||
|
||||
Boolean((fn as { [SEEK_REAPPLY_WRAPPED]?: boolean })[SEEK_REAPPLY_WRAPPED]));
|
||||
|
||||
const markWrapped = (fn: SeekFunction): void => {
|
||||
|
||||
Reference in New Issue
Block a user