fix(lib/patcher/hooks/after): use correct type

This commit is contained in:
PalmDevs 2025-06-09 22:46:46 +07:00
parent 74db4e3ce8
commit 5c54e3d8e5
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -4,16 +4,11 @@ import {
unproxy,
} from '../_internal'
import type { HookNode, PatchedFunctionProxyState } from '../_internal'
import type {
AfterHook,
BeforeHook,
FiniteDomain,
UnknownFunction,
} from '../types'
import type { AfterHook, FiniteDomain, UnknownFunction } from '../types'
function unpatchAfter<T extends UnknownFunction>(
state: PatchedFunctionProxyState<PropertyKey, T>,
hookNode: HookNode<BeforeHook<T>>,
hookNode: HookNode<AfterHook<T>>,
) {
if (hookNode.unpatched) return