UNPKG

@react-input-validator/rules

Version:

The validation rule objects used by the packages: `@react-input-validator/core`, `@react-input-validator/native` and `@react-input-validator/web`

10 lines 527 B
import type { ComparableType, IRule, HttpReqOption, Nullable } from './Rule'; import ValidationRuleAsync from './ValidationRuleAsync'; export declare class HttpReq extends ValidationRuleAsync<Nullable<ComparableType | boolean>> { #private; constructor(uri: string, option?: HttpReqOption); get errorMessage(): Nullable<string>; validate(): Promise<IRule<Nullable<ComparableType | boolean>>>; } export declare const httpReq: (uri: string, option?: HttpReqOption) => HttpReq; //# sourceMappingURL=httpReq.d.ts.map