mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 08:47:00 +00:00
11 lines
346 B
TypeScript
11 lines
346 B
TypeScript
/** Typed failure from a pure PyInstaller parser before the reader adapts it. */
|
|
export interface PyInstallerFailure {
|
|
readonly reason: "format" | "integrity" | "limit";
|
|
readonly message: string;
|
|
}
|
|
|
|
export const pyInstallerFailure = (
|
|
reason: PyInstallerFailure["reason"],
|
|
message: string,
|
|
): PyInstallerFailure => ({ reason, message });
|