(options)
| 30182 | return this._addCheck({ kind: "ip", ...errorUtil_1.errorUtil.errToObj(options) }); |
| 30183 | } |
| 30184 | datetime(options) { |
| 30185 | var _a5, _b2; |
| 30186 | if (typeof options === "string") { |
| 30187 | return this._addCheck({ |
| 30188 | kind: "datetime", |
| 30189 | precision: null, |
| 30190 | offset: false, |
| 30191 | local: false, |
| 30192 | message: options |
| 30193 | }); |
| 30194 | } |
| 30195 | return this._addCheck({ |
| 30196 | kind: "datetime", |
| 30197 | precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision, |
| 30198 | offset: (_a5 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a5 !== void 0 ? _a5 : false, |
| 30199 | local: (_b2 = options === null || options === void 0 ? void 0 : options.local) !== null && _b2 !== void 0 ? _b2 : false, |
| 30200 | ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) |
| 30201 | }); |
| 30202 | } |
| 30203 | date(message) { |
| 30204 | return this._addCheck({ kind: "date", message }); |
| 30205 | } |
no test coverage detected