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.
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
import type { DescEnum, DescExtension, DescFile, DescMessage, DescService, ScalarType } from "@bufbuild/protobuf";
|
|
import type { ImportSymbol } from "./import-symbol.js";
|
|
/**
|
|
* All types that can be passed to GeneratedFile.print()
|
|
*/
|
|
export type Printable = string | number | boolean | bigint | Uint8Array | ImportSymbol | ExportStatement | JSDocBlock | LiteralString | LiteralProtoInt64 | DescImport | ShapeImport | JsonTypeImport | ValidTypeImport | Printable[];
|
|
export type ExportStatement = {
|
|
kind: "es_export_stmt";
|
|
name: string;
|
|
declaration?: string;
|
|
};
|
|
export type LiteralProtoInt64 = {
|
|
readonly kind: "es_proto_int64";
|
|
type: ScalarType.INT64 | ScalarType.SINT64 | ScalarType.SFIXED64 | ScalarType.UINT64 | ScalarType.FIXED64;
|
|
longAsString: boolean;
|
|
value: bigint | string;
|
|
};
|
|
export type LiteralString = {
|
|
readonly kind: "es_string";
|
|
value: string;
|
|
};
|
|
export type DescImport = {
|
|
readonly kind: "es_desc_ref";
|
|
desc: DescMessage | DescEnum | DescExtension | DescService | DescFile;
|
|
typeOnly?: boolean;
|
|
};
|
|
export type ShapeImport = {
|
|
readonly kind: "es_shape_ref";
|
|
desc: DescMessage | DescEnum;
|
|
};
|
|
export type JsonTypeImport = {
|
|
readonly kind: "es_json_type_ref";
|
|
desc: DescMessage | DescEnum;
|
|
};
|
|
export type ValidTypeImport = {
|
|
readonly kind: "es_valid_type_ref";
|
|
desc: DescMessage;
|
|
};
|
|
export type JSDocBlock = {
|
|
readonly kind: "es_jsdoc";
|
|
text: string;
|
|
indentation?: string;
|
|
};
|