Skip to content

Commit

Permalink
Add Type Definition for Handlebars.VERSION, Fixes #1647
Browse files Browse the repository at this point in the history
  • Loading branch information
papasmile authored and nknapp committed Feb 4, 2020
1 parent a32d05f commit 4de51fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,7 @@ function testProtoAccessControlControlOptions() {
}
);
}

function testHandlebarsVersion() {
let version: string = Handlebars.VERSION;
}

0 comments on commit 4de51fe

Please sign in to comment.