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

Ensure allowCallsToHelperMissing runtime option is optional in typings #1560

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Ensure allowCallsToHelperMissing runtime option is optional in typings #1560

merged 1 commit into from
Sep 24, 2019

Conversation

i-like-robots
Copy link
Contributor

@i-like-robots i-like-robots commented Sep 24, 2019

We started getting type errors this morning with the release of v4.3.0:

Property 'allowCallsToHelperMissing' is missing in type '{ ... }' but required in type 'RuntimeOptions'

I believe this property is not actually required so this PR updates the types to ensure it is flagged as optional.

i-like-robots added a commit to Financial-Times/dotcom-page-kit that referenced this pull request Sep 24, 2019
…id TS bug

The latest 4.3.0 release of Handlebars introduced a new option which has been incorrectly declared as mandatory in the associated typings. This is currently failing our builds and I have opened a PR on the dependency here: handlebars-lang/handlebars.js#1560
@nknapp
Copy link
Collaborator

nknapp commented Sep 24, 2019

You are right. Thanks. But please see if you can point your PR to the 4.x branch.

@i-like-robots i-like-robots changed the base branch from master to 4.x September 24, 2019 16:37
@i-like-robots i-like-robots changed the base branch from 4.x to master September 24, 2019 16:38
@i-like-robots i-like-robots changed the base branch from master to 4.x September 24, 2019 16:39
@i-like-robots
Copy link
Contributor Author

Sorted 👍

@nknapp nknapp merged commit 93444c5 into handlebars-lang:4.x Sep 24, 2019
@nknapp
Copy link
Collaborator

nknapp commented Sep 24, 2019

I'll add a test to the file /types/test.ts. I forgot to mention that earlier...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants