Skip to content

Commit 4de51fe

Browse files
papasmilenknapp
authored andcommittedFeb 4, 2020
Add Type Definition for Handlebars.VERSION, Fixes #1647
1 parent a32d05f commit 4de51fe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎types/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ declare namespace Handlebars {
8888
// TODO: replace Function with actual signature
8989
export const decorators: { [name: string]: Function };
9090

91+
export const VERSION: string;
92+
9193
export function noConflict(): typeof Handlebars;
9294

9395
export class Exception {

‎types/test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,7 @@ function testProtoAccessControlControlOptions() {
252252
}
253253
);
254254
}
255+
256+
function testHandlebarsVersion() {
257+
let version: string = Handlebars.VERSION;
258+
}

0 commit comments

Comments
 (0)
Please sign in to comment.