Correct types here:
Incorrect types here: https://www.npmjs.com/package/@forge/bridge?activeTab=code
How does this happen? You actually have the correct types in the documentation but not in the actual code itself - the thing that’s pretty trivial to test automatically.
For everyone else, here’s your workaround
import { LicenseDetails } from "@forge/bridge/out/types";
type WithCapabilitySet<T> = T&{ capabilitySet: 'capabilityStandard' | 'capabilityAdvanced' | null };
type RealLicenseDetails = WithCapabilitySet<LicenseDetails>