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.
15 lines
678 B
TypeScript
15 lines
678 B
TypeScript
import type { ImportSymbol } from "./import-symbol.js";
|
|
import { symbols } from "@bufbuild/protobuf/codegenv2";
|
|
export type RuntimeImports = mapRecord<typeof symbols>;
|
|
export declare function createRuntimeImports(bootstrapWkt: boolean): RuntimeImports;
|
|
type mapRecord<T extends Record<string, unknown>> = {
|
|
[P in keyof T]: T[P] extends symbolInfo ? ImportSymbol : T[P] extends Record<string, unknown> ? mapRecord<T[P]> : never;
|
|
};
|
|
declare function mapRecord<T extends Record<string, unknown>>(record: T, bootstrapWkt: boolean): mapRecord<T>;
|
|
type symbolInfo = {
|
|
readonly typeOnly: boolean;
|
|
readonly from: string;
|
|
readonly bootstrapWktFrom: string;
|
|
};
|
|
export {};
|