Type Alias TwingTemplateLoader

TwingTemplateLoader: ((name: string, from: string | null) => Promise<TwingTemplate | null>)

Loads a template by its name.

Type declaration

    • (name, from): Promise<TwingTemplate | null>
    • Parameters

      • name: string

        The name of the template to load

      • from: string | null

        The name of the template that requested the load

      Returns Promise<TwingTemplate | null>