Returns the instance consists of the , and chars of the object.
wrapper.class.ts
public toWrap(): Wrap<Opening, Text, Closing> {
return new Wrap(this.opening, this.closing, this.text);
}
Return type
Wrap<Opening,Text,Closing>
The return type is the object that takes generic type variables , and .
Returns
The return value is an instance of consisting of the , , and chars of the object.
Example usage
// Example usage.
import { Wrapper } from '@angular-package/wrapper';
const longText = new Wrapper('{', '}', '{This is a long text}');
// Returns Wrap {'{{This is a long text}}'}.
longText.toWrap();