Skip to main content

Class: CdiUtils

Defined in: src/sdk/cdi/CdiUtils.ts:6

A utility class for working with CDIs.

Constructors

Constructor

new CdiUtils(): CdiUtils

Returns

CdiUtils

Methods

getEventBusTopicSuffix()

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

Defined in: src/sdk/cdi/CdiUtils.ts:12

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

Type Parameters

Type Parameter
ID extends string

Parameters

ParameterTypeDescription
idIDThe index for which to get the suffix.

Returns

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

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


static navSourceIdEquals(a, b): boolean

Defined in: src/sdk/cdi/CdiUtils.ts:22

Checks whether two CDI navigation sources are equal.

Parameters

ParameterTypeDescription
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.