UNPKG
netpower-js
Version:
latest (1.0.1)
1.0.1
A common library that can be used for fe and be
netpower-js
/
lib
/
antib
/
index.d.ts
15 lines
(14 loc)
•
353 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
default
class
Antib
{
static
generate
(secret?:
string
): { key:
string
; value:
string
; };
static
intercept
(
req
: {
headers
: { [
key
:
string
]:
string
; }; }, secret?:
string
):
void
;
static
guard
(
headers
: { [
key
:
string
]:
string
; }, secret?:
string
):
boolean
; }