handlebars-lang/handlebars.js

Typings allow calling "compile" when including "handlebars/runtime".

開放

#1,513 建立於 2019年3月16日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (2,032 個分叉)batch import
bughelp wantedtypingsunverified

倉庫指標

星標
 (17,697 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

This issue is actually not verified, but maybe someone can verify and fix it:

The typings of "handlebars/runtime" currently include "handlebars.d.ts", so the "compile"-method is probably part of the typings for "handlebars/runtime". This is nonsense of course. It should only be in "handlebars".

I think the inclusion should be the other way around: Most typings should be in "runtime.d.ts". "handlebars.d.ts" should include them and add "compile" and "precompile".

貢獻者指南