Type alias CreateTemplateContext

CreateTemplateContext: ((literals, ...expressions) => Template)

Type declaration

    • (literals, ...expressions): Template
    • Template creator with context established

      Parameters

      Returns Template

      Example

      const { context, a } = ad(model)
      const dm = context('You are a Dungeon master', 'Create an interesting NPC')

      const npc = dm`{
      "name": "${a('character name')}"
      }`

Generated using TypeDoc