Refactor the custom helpers into their own files
This commit is contained in:
parent
af2df4f7c5
commit
0392d339db
7 changed files with 69 additions and 62 deletions
14
module/helpers/index.mjs
Normal file
14
module/helpers/index.mjs
Normal 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,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue