IFClite TypeScript API
    Preparing search index...
    Index
    • Reset everything. Primarily for tests.

      Returns void

    • Get a snapshot of the contributions for a slot, in registration order.

      Type Parameters

      • T = unknown

      Parameters

      • slot: string

      Returns SlotContribution<T>[]

    • True iff the extension has any registered contributions.

      Parameters

      • extensionId: string

      Returns boolean

    • All slots that currently have at least one contribution.

      Returns string[]

    • Register one or more contributions. All contributions in the call are applied atomically; listeners are notified once per affected slot at the end.

      Throws if any contribution's extensionId mismatches the others.

      Parameters

      Returns void

    • Subscribe to a slot. The listener is invoked immediately with the current contribution list and on every subsequent change.

      Returns an unsubscribe function.

      Type Parameters

      • T = unknown

      Parameters

      Returns () => void

    • Remove all contributions from an extension. Notifies listeners for each affected slot. Safe to call for an unknown extension (no-op).

      Parameters

      • extensionId: string

      Returns void