Skip to main content

Class: CdiUtils

A utility class for working with CDIs.

Constructors

constructor

new CdiUtils(): CdiUtils

Returns

CdiUtils

Methods

getEventBusTopicSuffix

getEventBusTopicSuffix<ID>(id): ID extends "" ? "" : `_${ID}`

Gets the suffix for event bus topics associated with a given CDI index.

Type parameters

NameType
IDextends string

Parameters

NameTypeDescription
idIDThe index for which to get the suffix.

Returns

ID extends "" ? "" : `_${ID}`

The suffix for event bus topics associated with the specified CDI index.

Defined in

src/sdk/cdi/CdiUtils.ts:12


navSourceIdEquals(a, b): boolean

Checks whether two CDI navigation sources are equal.

Parameters

NameTypeDescription
aReadonly<NavSourceId>The first source to check.
bReadonly<NavSourceId>The second source to check.

Returns

boolean

Whether the two specified CDI navigation sources are equal.

Defined in

src/sdk/cdi/CdiUtils.ts:22