Webix Jet + Typescript + Handlebars

This is not a specific question for Webix but any help would be appreciated.

I found very useful work with Webix + TypeScript, after read this article: https://blog.webix.com/using-handlebars-templates-with-webix-ui/ I want to include Handlebars for some templates, but I can’t found how to make it work.

I tried installing as npm package, load the minified version, add path in compilerOptions (tsconfig.json) without success.

Thanks in advance.

Hello!
Maybe this sample helps you: https://snippet.webix.com/dgd0djcx

The problem is when try to use Handlebars in a .ts file, webpack doesn’t compile because Handlebars is not recognized but adding the following line in webpack.config.js:

...
resolve: { 
  alias:{
  ...
  "handlebars":path.resolve(__dirname, "sources/js/handlebars.min-v4.0.11.js")
  }
}

then import Handlebars in .ts file:
import Handlebars = require("handlebars");

made the trick, I really don’t know if this is the correct/better approach.

Thank you Nastja.