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

37 lines
1.6 KiB
TypeScript

import * as rt from "@protobuf-ts/runtime";
import * as ts from "typescript";
import { DescFile, DescService } from "@bufbuild/protobuf";
import { FileOptions_OptimizeMode } from "@bufbuild/protobuf/wkt";
import { ServerStyle, ClientStyle } from "./gen/protobuf-ts_pb";
/**
* Internal settings for the file generation.
*/
export interface Options {
readonly generateDependencies: boolean;
readonly pluginCredit?: string;
readonly normalLongType: rt.LongType;
readonly normalOptimizeMode: FileOptions_OptimizeMode;
readonly forcedOptimizeMode: FileOptions_OptimizeMode | undefined;
readonly normalServerStyle: ServerStyle;
readonly forcedServerStyle: ServerStyle | undefined;
readonly normalClientStyle: ClientStyle;
readonly forcedClientStyle: ClientStyle | undefined;
readonly synthesizeEnumZeroValue: string | false;
readonly oneofKindDiscriminator: string;
readonly runtimeRpcImportPath: string;
readonly runtimeImportPath: string;
readonly forceExcludeAllOptions: boolean;
readonly keepEnumPrefix: boolean;
readonly useProtoFieldName: boolean;
readonly tsNoCheck: boolean;
readonly esLintDisable: boolean;
readonly transpileTarget: ts.ScriptTarget | undefined;
readonly transpileModule: ts.ModuleKind;
readonly forceDisableServices: boolean;
readonly addPbSuffix: boolean;
getOptimizeMode(file: DescFile): FileOptions_OptimizeMode;
getClientStyles(descriptor: DescService): ClientStyle[];
getServerStyles(descriptor: DescService): ServerStyle[];
}
export declare function parseOptions(parameter: string, pluginCredit?: string): Options;