-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
43 lines (36 loc) · 890 Bytes
/
index.d.ts
File metadata and controls
43 lines (36 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Type definitions for FalseJS
*/
export interface FalseJS {
/**
* The core False function.
* Accepts configuration strings and a compatibility mode.
*/
False: (...args: (string | any)[]) => false
/**
* Validates if a value is strictly false.
*/
isFalse: (value: any) => value is false
/**
* Injects FalseJS functionality into a global jQuery instance.
*/
injectIntojQuery: () => void
/**
* Express.js middleware that attaches False and isFalse to the request object.
*/
expressMiddleware: (req: any, res: any, next: () => void) => void
/**
* Compatibility constants nested strictly under the default export.
*/
COMPATIBILITY_MODE: {
NONE: "none"
NETSCAPE: "netscape"
IE5: "ie5"
OPERA_PRESTO: "opera_presto"
}
}
/**
* The single default export representing the library object.
*/
declare const falsejs: FalseJS
export default falsejs