From 4de51fe26ba049c743993424b937c0afc6cd9ae9 Mon Sep 17 00:00:00 2001 From: ismailjones Date: Tue, 4 Feb 2020 16:47:05 -0500 Subject: [PATCH] Add Type Definition for Handlebars.VERSION, Fixes #1647 --- types/index.d.ts | 2 ++ types/test.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 1fa83680d..3f2f8b792 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -88,6 +88,8 @@ declare namespace Handlebars { // TODO: replace Function with actual signature export const decorators: { [name: string]: Function }; + export const VERSION: string; + export function noConflict(): typeof Handlebars; export class Exception { diff --git a/types/test.ts b/types/test.ts index 7a34b7eba..1ed038f6a 100644 --- a/types/test.ts +++ b/types/test.ts @@ -252,3 +252,7 @@ function testProtoAccessControlControlOptions() { } ); } + +function testHandlebarsVersion() { + let version: string = Handlebars.VERSION; +}