Explanation
Partial primitive value with the exact return type
// Example usage.
import { Wrap } from '@angular-package/text';
// Define tag [quote].
const quoteTag = new Wrap(
// quoteTag.opening;
`[`,
// quoteTag.closing;
`]`,
// quoteTag.content;
'quote'
);
// The opening is of a generic type variable Opening in this case it's [.
quoteTag.opening;
// The closing is of a generic type variable Closing in this case it's ].
quoteTag.closing;
// The content is of a generic type variable Content in this case it's quote.
quoteTag.content;
Immutability
Object as types
Last updated