git ssb

0+

Piet / ssb-loomio



Tree: ec22a109e197a4c2d5f3dfca7ae54400d60890b5

Files: ec22a109e197a4c2d5f3dfca7ae54400d60890b5 / 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