File: must.d.ts

package info (click to toggle)
node-json-stringify-safe 5.0.1%2Brepack-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,108 kB
  • sloc: javascript: 6,398; makefile: 117
file content (96 lines) | stat: -rw-r--r-- 2,332 bytes parent folder | download | duplicates (3)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
interface Must {
    a: CallableMust;
    above(expected): Must;
    after(expected): Must;
    an: CallableMust;
    array(): Must;
    at: Must;
    be: CallableMust;
    before(expected): Must;
    below(expected): Must;
    between(begin, end): Must;
    boolean(): Must;
    contain(expected): Must;
    date(expected): Must;
    empty(): Must;
    endWith(expected: string): Must;
    enumerable(property: string): Must;
    enumerableProperty(property: string): Must;
    eql(expected): Must;
    equal(expected): Must;
    error(constructor?, expected?): Must;
    eventually: Must;
    exist(): Must;
    false(): Must;
    falsy(): Must;
    frozen(): Must;
    function(): Must;
    gt(expected: number): Must;
    gte(expected: number): Must;
    have: Must;
    include(expected): Must;
    instanceOf(expected): Must;
    instanceof(expected): Must;
    is(expected): Must;
    keys(expected: Array<string>): Must;
    least(expected): Must;
    length(expected: number): Must;
    lt(expected: number): Must;
    lte(expected: number): Must;
    match(expected): Must;
    most(expected: number): Must;
    must: Must;
    nan(): Must;
    nonenumerable(property: string): Must;
    nonenumerableProperty(property: string): Must;
    not: Must;
    null(): Must;
    number(): Must;
    object(): Must;
    own(property: string, value?): Must;
    ownKeys(keys: Array<string>): Must;
    ownProperties(properties: any): Must;
    ownProperty(property: string, value?): Must;
    permutationOf(expected: Array<any>): Must;
    properties(properties: any): Must;
    property(property: string, value?): Must;
    regexp(): Must;
    reject: Must;
    resolve: Must;
    startWith(expected: string): Must;
    string(): Must;
    symbol(): Must;
    the: Must;
    then: Must;
    throw(constructor?, expected?): Must;
    to: Must;
    true(): Must;
    truthy(): Must;
    undefined(): Must;
    with: Must;
}
interface CallableMust extends Must {
    (): Must;
}
declare function must(expected: any): Must;
declare namespace must {}

export = must;

declare global {
    interface String {
        must: Must;
    }
    interface Boolean {
        must: Must;
    }
    interface Number {
        must: Must;
    }
    interface Object {
        must: Must;
    }
    interface Array<T> {
        must: Must;
    }
}