Wrapper() constructor

Wrapper()

Creates a new Wrapper instance with the opening and closing chars.

wrapper.class.ts
constructor(opening: Opening, closing: Closing) {
  super(opening, closing);
}

Parameters

Name: type
Description

opening: Opening

The opening chars of a generic type variable Opening.

closing: Closing

The closing chars of a generic type variable Closing.

Returns

The return value is a new instance of Wrapper.

Example usage

// Example usage.
import { Wrapper } from '@angular-package/text';

// Returns Wrapper {'{{}}'}
new Wrapper(`{{`, `}}`);

// Returns Wrapper {'nullnull'}
new Wrapper(null as any, null as any);

Last updated