Skip to content

checkPack beta ​

Function of @v12-engine/engine

ts
export declare function checkPack(json: unknown, where?: string): PackFile;

Checks a pack's file as it is read (the schema's rules a loader needs: the pack's schema has all of them): its id and version, and that each list is of definitions with an id, once each. Throws PackError saying where