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.
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import type { DescField, DescOneof } from "../descriptors.js";
|
|
export declare const unsafeLocal: unique symbol;
|
|
/**
|
|
* Return the selected field of a oneof group.
|
|
*
|
|
* @private
|
|
*/
|
|
export declare function unsafeOneofCase(target: Record<string, any>, oneof: DescOneof): DescField | undefined;
|
|
/**
|
|
* Returns true if the field is set.
|
|
*
|
|
* @private
|
|
*/
|
|
export declare function unsafeIsSet(target: Record<string, any>, field: DescField): boolean;
|
|
/**
|
|
* Returns true if the field is set, but only for singular fields with explicit
|
|
* presence (proto2).
|
|
*
|
|
* @private
|
|
*/
|
|
export declare function unsafeIsSetExplicit(target: object, localName: string): boolean;
|
|
/**
|
|
* Return a field value, respecting oneof groups.
|
|
*
|
|
* @private
|
|
*/
|
|
export declare function unsafeGet(target: Record<string, unknown>, field: DescField): unknown;
|
|
/**
|
|
* Set a field value, respecting oneof groups.
|
|
*
|
|
* @private
|
|
*/
|
|
export declare function unsafeSet(target: Record<string, unknown>, field: DescField, value: unknown): void;
|
|
/**
|
|
* Resets the field, so that unsafeIsSet() will return false.
|
|
*
|
|
* @private
|
|
*/
|
|
export declare function unsafeClear(target: Record<string, any>, field: DescField): void;
|