UNPKG
spec-mate
Version:
latest (1.0.0)
1.0.0
A powerful, flexible, and easy-to-use API testing framework for Node.js.
spec-mate
/
types
/
hooks.d.ts
8 lines
(7 loc)
•
222 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
type
HookFunction
=
(
context
:
any
) =>
void
|
Promise
<
void
>;
export
interface
Hooks
{
beforeRequest
?:
HookFunction
;
afterRequest
?:
HookFunction
;
beforeTest
?:
HookFunction
;
afterTest
?:
HookFunction
; }