Ran prettier and adds tapable.d.ts to the list of files to format
--
Happy to split this PR up into 2 if that makes it easier to review.
The main change was the addition of another parameter to the base Hook interface for Context, that's then passed down to the HookInterceptor type, which is now a discriminated union based on the presence of the context: true parameter to the intercept() call and augments the expected arguments.
I also updated the args in call() and loop() to leverage the argument types in their signature (instead of any[])
TL;DR
context
support for the Hook interfaceprettier
and addstapable.d.ts
to the list of files to format--
Happy to split this PR up into 2 if that makes it easier to review.
The main change was the addition of another parameter to the base
Hook
interface forContext
, that's then passed down to theHookInterceptor
type, which is now a discriminated union based on the presence of thecontext: true
parameter to theintercept()
call and augments the expected arguments.I also updated the args in
call()
andloop()
to leverage the argument types in their signature (instead ofany[]
)Fixes #171