|
| 1 | +/** Declaration file generated by dts-gen */ |
| 2 | + |
| 3 | +export = fastest_validator; |
| 4 | + |
| 5 | +declare class fastest_validator { |
| 6 | + constructor(opts: any); |
| 7 | + |
| 8 | + add(type: any, fn: any): void; |
| 9 | + |
| 10 | + checkSchemaArray(value: any, compiledArray: any, path: any, parent: any): any; |
| 11 | + |
| 12 | + checkSchemaObject(value: any, compiledObject: any, path: any, parent: any): any; |
| 13 | + |
| 14 | + checkSchemaObjectInner(value: any, compiledObject: any, path: any, parent: any): any; |
| 15 | + |
| 16 | + checkSchemaRule(value: any, compiledRule: any, path: any, parent: any): any; |
| 17 | + |
| 18 | + checkSchemaType(value: any, compiledType: any, path: any, parent: any): any; |
| 19 | + |
| 20 | + compile(schema: any): any; |
| 21 | + |
| 22 | + compileSchemaObject(schemaObject: any): any; |
| 23 | + |
| 24 | + compileSchemaRule(schemaRule: any): any; |
| 25 | + |
| 26 | + compileSchemaType(schemaType: any): any; |
| 27 | + |
| 28 | + handleResult(errors: any, fieldPath: any, res: any): void; |
| 29 | + |
| 30 | + makeError(type: any, expected: any, actual: any): any; |
| 31 | + |
| 32 | + resolveMessage(err: any): any; |
| 33 | + |
| 34 | + validate(obj: any, schema: any): any; |
| 35 | + |
| 36 | +} |
| 37 | + |
| 38 | +declare namespace fastest_validator { |
| 39 | + namespace prototype { |
| 40 | + function add(type: any, fn: any): void; |
| 41 | + |
| 42 | + function checkSchemaArray(value: any, compiledArray: any, path: any, parent: any): any; |
| 43 | + |
| 44 | + function checkSchemaObject(value: any, compiledObject: any, path: any, parent: any): any; |
| 45 | + |
| 46 | + function checkSchemaObjectInner(value: any, compiledObject: any, path: any, parent: any): any; |
| 47 | + |
| 48 | + function checkSchemaRule(value: any, compiledRule: any, path: any, parent: any): any; |
| 49 | + |
| 50 | + function checkSchemaType(value: any, compiledType: any, path: any, parent: any): any; |
| 51 | + |
| 52 | + function compile(schema: any): any; |
| 53 | + |
| 54 | + function compileSchemaObject(schemaObject: any): any; |
| 55 | + |
| 56 | + function compileSchemaRule(schemaRule: any): any; |
| 57 | + |
| 58 | + function compileSchemaType(schemaType: any): any; |
| 59 | + |
| 60 | + function handleResult(errors: any, fieldPath: any, res: any): void; |
| 61 | + |
| 62 | + function makeError(type: any, expected: any, actual: any): any; |
| 63 | + |
| 64 | + function resolveMessage(err: any): any; |
| 65 | + |
| 66 | + function validate(obj: any, schema: any): any; |
| 67 | + |
| 68 | + namespace add { |
| 69 | + const prototype: { |
| 70 | + }; |
| 71 | + |
| 72 | + } |
| 73 | + |
| 74 | + namespace checkSchemaArray { |
| 75 | + const prototype: { |
| 76 | + }; |
| 77 | + |
| 78 | + } |
| 79 | + |
| 80 | + namespace checkSchemaObject { |
| 81 | + const prototype: { |
| 82 | + }; |
| 83 | + |
| 84 | + } |
| 85 | + |
| 86 | + namespace checkSchemaObjectInner { |
| 87 | + const prototype: { |
| 88 | + }; |
| 89 | + |
| 90 | + } |
| 91 | + |
| 92 | + namespace checkSchemaRule { |
| 93 | + const prototype: { |
| 94 | + }; |
| 95 | + |
| 96 | + } |
| 97 | + |
| 98 | + namespace checkSchemaType { |
| 99 | + const prototype: { |
| 100 | + }; |
| 101 | + |
| 102 | + } |
| 103 | + |
| 104 | + namespace compile { |
| 105 | + const prototype: { |
| 106 | + }; |
| 107 | + |
| 108 | + } |
| 109 | + |
| 110 | + namespace compileSchemaObject { |
| 111 | + const prototype: { |
| 112 | + }; |
| 113 | + |
| 114 | + } |
| 115 | + |
| 116 | + namespace compileSchemaRule { |
| 117 | + const prototype: { |
| 118 | + }; |
| 119 | + |
| 120 | + } |
| 121 | + |
| 122 | + namespace compileSchemaType { |
| 123 | + const prototype: { |
| 124 | + }; |
| 125 | + |
| 126 | + } |
| 127 | + |
| 128 | + namespace handleResult { |
| 129 | + const prototype: { |
| 130 | + }; |
| 131 | + |
| 132 | + } |
| 133 | + |
| 134 | + namespace makeError { |
| 135 | + const prototype: { |
| 136 | + }; |
| 137 | + |
| 138 | + } |
| 139 | + |
| 140 | + namespace resolveMessage { |
| 141 | + const prototype: { |
| 142 | + }; |
| 143 | + |
| 144 | + } |
| 145 | + |
| 146 | + namespace validate { |
| 147 | + const prototype: { |
| 148 | + }; |
| 149 | + |
| 150 | + } |
| 151 | + |
| 152 | + } |
| 153 | + |
| 154 | +} |
| 155 | + |
0 commit comments