Generic type variables
Last updated
Was this helpful?
Last updated
Was this helpful?
Wrap<
Opening
, ...>
Opening
extends
string
=
string
A generic type variable constrained by the , by default of the value captured from the provided indicates the opening type of a new instance.
Wrap<...,
Text
, ...>
Text
extends
string
=
``
Wrap<...,
Closing
>
Closing
extends
string
=
string
A generic type variable constrained by the , by default of the value captured from the provided indicates the text type of a new instance.
The constructor text
parameter is optional, and if not provided, the default value of the generic type variable is not captured, but it's an empty from the declaration.
A generic type variable constrained by the , by default of the value captured from the provided indicates the closing type of a new instance.