Marmot-TS
    Preparing search index...

    Type Alias StoredKeyPackage

    A stored key package — either a locally-held one (with private material) or a tracked foreign one (without private material).

    Use privatePackage to narrow the type:

    if (pkg.privatePackage !== undefined) {
    // pkg is LocalKeyPackage
    } else {
    // pkg is TrackedKeyPackage
    }