diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-16 15:41:31 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 13:40:01 -0400 |
commit | 6bcbe4f3489bafff4a78f87e030c08db734af021 (patch) | |
tree | 94715c3579636f0aa1ea2756ebe8b98989980745 /src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js | |
parent | 89cf67d4348d4ac43df158b265fdac4e48cfe03c (diff) |
data: reverseAnnotatedReferenceList
Diffstat (limited to 'src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js')
-rw-r--r-- | src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js b/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js new file mode 100644 index 00000000..d18e5357 --- /dev/null +++ b/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js @@ -0,0 +1,25 @@ +import {input, templateCompositeFrom} from '#composite'; + +import {exposeDependency} from '#composite/control-flow'; +import {inputWikiData, withReverseAnnotatedReferenceList} + from '#composite/wiki-data'; + +export default templateCompositeFrom({ + annotation: `reverseAnnotatedReferenceList`, + + compose: false, + + inputs: { + data: inputWikiData({allowMixedTypes: false}), + list: input({type: 'string'}), + }, + + steps: () => [ + withReverseAnnotatedReferenceList({ + data: input('data'), + list: input('list'), + }), + + exposeDependency({dependency: '#reverseAnnotatedReferenceList'}), + ], +}); |