fix(lib/patcher/hooks/after): use correct type
This commit is contained in:
parent
74db4e3ce8
commit
5c54e3d8e5
1 changed files with 2 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue