Instance methods

Public

Wrap.prototype.getClosing()

Gets the closing of the wrap by returning the #closing property of the specified object.

wrap.class.ts
public getClosing(): Closing {
  return this.#closing;
}

Returns

The return value is the wrap closing of a generic type variable Closing.

Wrap.prototype.getOpening()

Gets the opening of the wrap by returning the #opening property of the specified object.

wrap.class.ts
public getOpening(): Opening {
  return this.#opening;
}

Returns

The return value is the wrap opening of a generic type variable Opening.

Wrap.prototype.getWrap()

Gets the wrap, primitive value consists of the opening and closing.

wrap.class.ts
public get(): `${Opening}${Closing}` {
  return this.valueOf();
}

Returns

The return value is the wrap consists of the opening and closing of a generic type variable Opening and Closing on the template.

Wrap.prototype.valueOf()

Returns the wrap, primitive value of the specified Wrap object.

wrap.class.ts
public valueOf(): `${Opening}${Closing}` {
  return super.valueOf() as `${Opening}${Closing}`;
}

Returns

The return value is a generic type variable Opening and Closing on the template, if properly defined, or an empty string.

Last updated