# Wrapper() constructor

## `Wrapper()`

Creates a new [`Wrapper`](https://docs.angular-package.dev/text/wrapper) instance with the opening and closing.

```typescript
constructor(opening: Opening, closing: Closing) {
  super(opening, closing);
}
```

#### Parameters

<table><thead><tr><th width="173.44477578337126">Name: type</th><th>Description</th></tr></thead><tbody><tr><td><code>opening: Opening</code></td><td>The wrap opening of a generic type variable <a href="../generic-type-variables#wrapper-less-than-opening-...greater-than"><code>Opening</code></a>.</td></tr><tr><td><code>closing: Closing</code></td><td>The wrap closing of a generic type variable <a href="../generic-type-variables#wrapper-less-than...-closing-greater-than"><code>Closing</code></a>.</td></tr></tbody></table>

#### Returns

The **return value** is a new instance of [`Wrapper`](https://docs.angular-package.dev/text/wrapper).

#### Example usage

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

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

// This example shows the provided opening and closing is wrong,
// resulting in a returned empty string.
// Returns Wrapper {''}
new Wrapper(null as any, null as any);
```
