forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
760 B
20 lines
760 B
2 months ago
|
import { type DescField } from "../descriptors.js";
|
||
|
import { FieldError } from "./error.js";
|
||
|
/**
|
||
|
* Check whether the given field value is valid for the reflect API.
|
||
|
*/
|
||
|
export declare function checkField(field: DescField, value: unknown): FieldError | undefined;
|
||
|
/**
|
||
|
* Check whether the given list item is valid for the reflect API.
|
||
|
*/
|
||
|
export declare function checkListItem(field: DescField & {
|
||
|
fieldKind: "list";
|
||
|
}, index: number, value: unknown): FieldError | undefined;
|
||
|
/**
|
||
|
* Check whether the given map key and value are valid for the reflect API.
|
||
|
*/
|
||
|
export declare function checkMapEntry(field: DescField & {
|
||
|
fieldKind: "map";
|
||
|
}, key: unknown, value: unknown): FieldError | undefined;
|
||
|
export declare function formatVal(val: unknown): string;
|