Skip to main content

Type Alias: TemplateSource

TemplateSource = object

Defined in: src/loader.ts:8

Template source text and meta data.

Properties

name

name: string

Defined in: src/loader.ts:12

Template name or identifier.


overlay?

optional overlay?: Namespace

Defined in: src/loader.ts:22

Additional template global variables.


source

source: string

Defined in: src/loader.ts:17

Template source code.


upToDate?

optional upToDate?: () => Promise<boolean>

Defined in: src/loader.ts:28

A function returning true if the template is up to date, or false if it needs to be loaded again.

Returns

Promise<boolean>


upToDateSync?

optional upToDateSync?: () => boolean

Defined in: src/loader.ts:34

A function returning true if the template is up to date, or false if it needs to be loaded again.

Returns

boolean