Refactor the custom helpers into their own files

This commit is contained in:
Oliver-Akins 2023-12-26 19:39:56 -07:00
parent af2df4f7c5
commit 0392d339db
7 changed files with 69 additions and 62 deletions

14
module/helpers/index.mjs Normal file
View file

@ -0,0 +1,14 @@
import { schemaOptions } from "./schemaOptions.mjs";
import { createArray } from "./createArray.mjs";
import { detailsExpanded } from "./detailsExpanded.mjs";
import { objectValue } from "./objectValue.mjs";
import { toFriendlyDuration } from "./toFriendlyDuration.mjs";
export default {
"dotdungeon-schemaOptions": schemaOptions,
"dotdungeon-array": createArray,
"dotdungeon-toFriendlyDuration": toFriendlyDuration,
"dotdungeon-objectValue": objectValue,
"dotdungeon-stringify": v => JSON.stringify(v, null, ` `),
"dotdungeon-expanded": detailsExpanded,
};