Notably, this gets us `@actions/github` 6.0.1, which is necessary for `github.context.runAttempt` (so I have also updated `package.json` accordingly). On that note... great job following semver, GitHub! Between this and the non-breaking major version change on `@actions/cache`, I'm starting to feel like nobody on the Actions team understands how software versioning works.
20 lines
760 B
TypeScript
20 lines
760 B
TypeScript
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;
|