git ssb

0+

Piet / ssb-loomio



Tree: ea9a423663b274022b27c3a9574fc2dfefa5b165

Files: ea9a423663b274022b27c3a9574fc2dfefa5b165 / methods.js

627 bytesRaw
1// verbose export of public methods
2const {isPoll, isChooseOnePoll, isPosition} = require('ssb-poll-schema')
3
4module.exports = {
5 poll: {
6 async: {
7 chooseOne: require('./poll/async/chooseOne'),
8 get: require('./poll/async/get')
9 },
10 sync: {
11 isPoll: () => isPoll,
12 isChooseOnePoll: () => isChooseOnePoll
13 // Poll: // this is not exported - doesn't follow the inject pattern atm
14 }
15 },
16 position: {
17 async: {
18 chooseOne: require('./position/async/chooseOne'),
19 position: require('./position/async/position')
20 },
21 sync: {
22 isPosition: () => isPosition
23 }
24 }
25}
26

Built with git-ssb-web