UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

20 lines (19 loc) 723 B
import IFile from "../storage/IFile"; export interface IHashCatalogEntry { fileName: string; propertyName: string; filePath?: string; } export type HashCatalog = { [hash: string]: IHashCatalogEntry; }; export default class HashUtilities { /** * Generates hash catalog entries for a file (both complete file hash and property hashes for JSON files) * @param file The file to generate hashes for * @param filePath The file path to store in the catalog entry * @param hashCatalog The hash catalog to populate * @param onError Optional error callback for handling errors */ static addHashesForFile(hashCatalog: HashCatalog, file: IFile, filePath: string): Promise<void>; }