@jaredwray/fumanchu 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.js +297 -250
  3. package/package.json +15 -21
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as HandlebarsLib from 'handlebars';
2
+ import HandlebarsLib__default from 'handlebars';
2
3
 
3
4
  declare enum HelperRegistryCompatibility {
4
5
  NODEJS = "nodejs",
@@ -13,7 +14,7 @@ type Helper = {
13
14
  name: string;
14
15
  category: string;
15
16
  compatibility?: HelperRegistryCompatibility;
16
- fn: ((...arguments_: any[]) => string);
17
+ fn: ((...arguments_: any[]) => string) | ((...arguments_: any[]) => HandlebarsLib__default.SafeString);
17
18
  };
18
19
  declare class HelperRegistry {
19
20
  private readonly _helpers;
@@ -74,6 +75,7 @@ type FumanchuOptions = {
74
75
  };
75
76
  /**
76
77
  * Will return a Handlebars instance with Fumanchu helpers (experimental)
78
+ * @param {FumanchuOptions} [options] - Options for Fumanchu
77
79
  * @returns {Handlebars} Handlebars instance with helpers
78
80
  */
79
81
  declare function fumanchu(options?: FumanchuOptions): typeof HandlebarsLib;