text

Wrap.prototype.text

The get accessor gets the text of the Wrap by returning the #text property of a specified object.

wrap.class.ts
public get text(): Text {
  return this.#text;
}

Return type

Text

The return type is the generic type variable Text declared in the Wrap class.

Returns

The return value is the text of a generic type variable Text.

Example usage

// Example usage.
import { Wrap } from '@angular-package/wrapper';

// Returns quote of type "quote".
new Wrap(`[`, `]`, 'quote').text;

Last updated