diff options
Diffstat (limited to 'src/reverse.js')
-rw-r--r-- | src/reverse.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/reverse.js b/src/reverse.js new file mode 100644 index 00000000..b5a4bf4c --- /dev/null +++ b/src/reverse.js @@ -0,0 +1,32 @@ +import {findSpec, getAllSpecs, tokenProxy} from './find-reverse.js'; + +const hardcodedReverseSpecs = {}; + +const findReverseHelperConfig = { + word: `reverse`, + constructorKey: Symbol.for('Thing.reverseSpecs'), + + hardcodedSpecs: hardcodedReverseSpecs, + postprocessSpec: postprocessReverseSpec, +}; + +export function postprocessReverseSpec(spec, {thingConstructor}) { + const newSpec = {...spec}; + + void thingConstructor; + + return newSpec; +} + +export function getAllReverseSpecs() { + return getAllSpecs(findReverseHelperConfig); +} + +export function findReverseSpec(key) { + return findSpec(key, findReverseHelperConfig); +} + +export default tokenProxy({ + findSpec: findReverseSpec, + prepareBehavior: spec => from => ({spec, from}), +}); |