git ssb

0+

Piet / ssb-loomio



Tree: 34520bc583f5508541b906f83cc6473ee08991e3

Files: 34520bc583f5508541b906f83cc6473ee08991e3 / methods.js

838 bytesRaw
1// verbose export of public methods
2const {isPoll, isChooseOnePoll, isPosition, isChooseOnePosition} = require('ssb-poll-schema')
3
4module.exports = {
5 poll: {
6 async: {
7 publishChooseOne: require('./poll/async/publishChooseOne'),
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 buildChooseOne: require('./position/async/buildChooseOne'),
19 publishChooseOne: require('./position/async/publishChooseOne'),
20 buildPosition: require('./position/async/buildPosition'),
21 publishPosition: require('./position/async/publishPosition')
22 },
23 sync: {
24 isChooseOnePosition: () => isChooseOnePosition
25 }
26 }
27}
28

Built with git-ssb-web