Files
mlugg 048396053b npm update
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.
2025-06-29 17:06:44 +01:00

14 lines
675 B
TypeScript

import type { MessageShape } from "./types.js";
import type { DescMessage } from "./descriptors.js";
/**
* Merge message `source` into message `target`, following Protobuf semantics.
*
* This is the same as serializing the source message, then deserializing it
* into the target message via `mergeFromBinary()`, with one difference:
* While serialization will create a copy of all values, `merge()` will copy
* the reference for `bytes` and messages.
*
* Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages
*/
export declare function merge<Desc extends DescMessage>(schema: Desc, target: MessageShape<Desc>, source: MessageShape<Desc>): void;