Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Type Definition for Handlebars.VERSION, Fixes #1647 #1650

Merged
merged 1 commit into from Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/index.d.ts
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
Expand Up @@ -252,3 +252,7 @@ function testProtoAccessControlControlOptions() {
}
);
}

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