Skip to content

Property 'VERSION' does not exist on type 'typeof Handlebars' #1647

Closed
@leosdad

Description

@leosdad

Hi,

Just a simple request. When calling handlebars.VERSION, the error message Property 'VERSION' does not exist on type 'typeof Handlebars' appears when using Typescript. I believe this is just a simple fix in the index.d.ts file. Thanks.

Activity

nknapp

nknapp commented on Jan 28, 2020

@nknapp
Collaborator

Can you open a PR for that? Please also include a test in test.ts . It would also be nice to have the documentation updated (the API reference on handlebarsjs.com) to include this feature.

papasmile

papasmile commented on Feb 4, 2020

@papasmile
Contributor

Hi, sorry, how do you run tests in test.ts anyway? Just running npm test doesn't seem to include any output from that file...

nknapp

nknapp commented on Feb 4, 2020

@nknapp
Collaborator

npm run check-before-pull-request should include the tests. Otherwise, run npm run dtslint

added a commit that references this issue on Feb 4, 2020
4de51fe
nknapp

nknapp commented on Feb 5, 2020

@nknapp
Collaborator

published in 4.7.3

leosdad

leosdad commented on Feb 5, 2020

@leosdad
Author

published in 4.7.3

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nknapp@papasmile@leosdad

        Issue actions

          Property 'VERSION' does not exist on type 'typeof Handlebars' · Issue #1647 · handlebars-lang/handlebars.js