mwg API
    Preparing search index...

    Interface VerifyPackageOptions

    interface VerifyPackageOptions {
        inspectPatch?: (
            bytes: Uint8Array,
            asset: { id: string; path: string },
        ) => void | { errors?: readonly string[]; warnings?: readonly string[] };
        limits?: Partial<PackageLimits>;
        policy?: PackagePolicy;
        shared?: boolean;
    }
    Index
    inspectPatch?: (
        bytes: Uint8Array,
        asset: { id: string; path: string },
    ) => void | { errors?: readonly string[]; warnings?: readonly string[] }

    looks inside each synth-patch asset, for what only an instrument's own parser knows (the retro-audio package's, for the D-50 waves its model does not render). What it returns as warnings is reported as a warning and never refuses the package: a patch that plays with a substitute wave is still a patch; errors it returns do refuse.

    limits?: Partial<PackageLimits>
    policy?: PackagePolicy

    also refuse what this game would refuse

    shared?: boolean

    the package is meant to be shared with others: a synth-patch bank then needs a licence too, since a third party's bank stays its author's (media always need one, shared or not)