Skip to main content

concatDescription

concatDescription(firstProp, secondProp, connector?): (constructor) => void

A resource-level decorator that combines two properties into a single description. This decorator cannot be used together with other decorators that modify the resource description.

Sets {@link ResourceMeta.description} (as a concatenated ResourceDescription).

Parameters

firstProp

string

The first property to combine.

secondProp

string

The second property to combine.

connector?

string

An optional connector to use between the two properties. Defaults to a space if not provided.

Returns

(constructor): void

Parameters

[constructor](function Object() { [native code] })

Constructor<unknown>

Returns

void