aboutsummaryrefslogtreecommitdiff
path: root/types/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-24 21:37:11 -0500
committerGitHub <noreply@github.com>2023-12-25 02:37:11 +0000
commit83ebc13bb9a83ef6be4d96d88f389e588924225b (patch)
treee080bc7b8b488890eda699a2ccb3e5806e8ad9e6 /types/ext
parent6550495282780abaaa4c1aa4d33e3907fedf2927 (diff)
Template helper function improvements (#439)
* Flag fn and inverse as optional * Properly handle different modalities of helper functions
Diffstat (limited to 'types/ext')
-rw-r--r--types/ext/template-renderer.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/ext/template-renderer.d.ts b/types/ext/template-renderer.d.ts
index 169fee78..52c6f745 100644
--- a/types/ext/template-renderer.d.ts
+++ b/types/ext/template-renderer.d.ts
@@ -55,8 +55,8 @@ export type DataType = {
export type HelperOptionsFunction<TResult = unknown> = (context: unknown) => TResult;
export type HelperOptions = {
- fn: HelperOptionsFunction;
- inverse: HelperOptionsFunction;
+ fn?: HelperOptionsFunction;
+ inverse?: HelperOptionsFunction;
hash: Core.SafeAny;
data?: Core.SafeAny;
};