Static properties

Private

Wrapper.allowedChars

The private static property of the AllowedChars type denotes allowed characters of the wrap. The default allowed characters for the wrap are [ ] ( ) < > { }. The pattern can be set by the static setAllowedChars() method and get by the static getAllowedChars() method.

wrapper.class.ts
private static allowedChars = new AllowedChars(/([\[\]\(\)<>{}])/g);

Wrapper.wrap

The private static property of the Wrap is the default instance of static Wrapper. It can be set by the static setWrap() method and get by the static getWrap() method. By default, it is set to [].

wrapper.class.ts
private static wrap: Wrap<string, string> = Wrapper.define('[', ']');

Last updated

Was this helpful?