A template tag that will resolve only after all interpolated promises have been resolved, finally returning the intended string.
Rest
import { tag } from 'deleight/apriori';const t = tag`I will wait for this ${Promise.resolve("promise")}!!!`// t === 'I will wait for this promise!!!' Copy
import { tag } from 'deleight/apriori';const t = tag`I will wait for this ${Promise.resolve("promise")}!!!`// t === 'I will wait for this promise!!!'
A template tag that will resolve only after all interpolated promises have been resolved, finally returning the intended string.