Appearance
@loontail/minecraft-kit v0.8.14 / VerificationFileResult
Type alias: VerificationFileResult
ts
type VerificationFileResult: {
actualSha1: string;
actualSize: number;
category: VerifyFileCategory;
expectedSha1: string;
expectedSize: number;
path: string;
status: VerifyFileStatus;
url: string;
};A single verified file.
Example
ts
import { VerifyFileStatuses, type VerificationFileResult } from "@loontail/minecraft-kit";
const issues: readonly VerificationFileResult[] = result.issues;
for (const i of issues) {
if (i.status === VerifyFileStatuses.CORRUPT) console.warn(`corrupt: ${i.path}`);
}Type declaration
| Member | Type | Description |
|---|---|---|
actualSha1 | string | - |
actualSize | number | - |
category | VerifyFileCategory | - |
expectedSha1 | string | - |
expectedSize | number | - |
path | string | - |
status | VerifyFileStatus | - |
url | string | Optional URL where the file can be re-downloaded if it's broken. |