Skip to main content Link Search Menu Expand Document (external link)

TemplatePart.ts overview

This module implements a MTemplatePart which is the constituent of MTemplate (see Template.ts).

There are two kinds of MTemplatePart’s: MTemplateSeparator’s (see TemplateSeparator.ts) and MTemplatePlaceholder’s (see TemplatePlaceholder.ts)


Exports Grouped by Category


Guards

isPlaceholder

Type guard

Signature

declare const isPlaceholder: <const N extends string, T>(u: Type<N, T>) => u is MTemplatePlaceholder.Type<N, T>

Source

isSeparator

Type guard

Signature

declare const isSeparator: <const N extends string, T>(u: Type<N, T>) => u is MTemplateSeparator.Type

Source

Models

Type (type alias)

Type of a TemplatePart

Signature

type Type<N extends string, T> = MTemplateSeparator.Type | MTemplatePlaceholder.Type<N, T>

Source