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.4 KiB
TypeScript

import { DescFile } from "@bufbuild/protobuf";
import { Options } from "./options";
import { OutFile } from "./out-file";
export declare class FileTable {
private readonly options;
readonly outFiles: OutFile[];
private readonly entries;
private readonly clashResolveMaxTries;
private readonly clashResolver;
constructor(options: Options, clashResolver?: ClashResolver);
register(requestedName: string, descFile: DescFile, kind?: string): string;
create(descFile: DescFile, kind?: string): OutFile;
protected hasName: (name: string) => boolean;
/**
* Find a symbol (of the given kind) for the given descriptor.
* Return `undefined` if not found.
*/
private findByProtoFilenameAndKind;
/**
* Find a symbol (of the given kind) for the given descriptor.
* Raises error if not found.
*/
get(descriptor: DescFile, kind?: string): FileTableEntry;
/**
* Is a name (of the given kind) registered for the the given descriptor?
*/
private has;
static defaultClashResolver(descriptor: DescFile, requestedName: string, kind: string, tryCount: number): string;
}
interface FileTableEntry {
desc: DescFile;
name: string;
kind: string;
}
declare type ClashResolver = (descriptor: DescFile, requestedName: string, kind: string, tryCount: number, failedName: string) => string;
export {};