diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-11 16:21:46 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-11 16:21:46 -0400 |
commit | a221bbc93039c9ad6eba4e472dd574d77f13831b (patch) | |
tree | f2dd6bb7c3a0654d08687568d3c32a46a7acfa93 /src/reverse.js | |
parent | b43833d7afd44b15d75a230be6a63299c3b21317 (diff) |
find, reverse: use namespace import
Diffstat (limited to 'src/reverse.js')
-rw-r--r-- | src/reverse.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reverse.js b/src/reverse.js index b5a4bf4c..0f235369 100644 --- a/src/reverse.js +++ b/src/reverse.js @@ -1,4 +1,4 @@ -import {findSpec, getAllSpecs, tokenProxy} from './find-reverse.js'; +import * as fr from './find-reverse.js'; const hardcodedReverseSpecs = {}; @@ -19,14 +19,14 @@ export function postprocessReverseSpec(spec, {thingConstructor}) { } export function getAllReverseSpecs() { - return getAllSpecs(findReverseHelperConfig); + return fr.getAllSpecs(findReverseHelperConfig); } export function findReverseSpec(key) { - return findSpec(key, findReverseHelperConfig); + return fr.findSpec(key, findReverseHelperConfig); } -export default tokenProxy({ +export default fr.tokenProxy({ findSpec: findReverseSpec, prepareBehavior: spec => from => ({spec, from}), }); |