git ssb

0+

Piet / ssb-loomio



Tree: 80c90c52e4088319b7d48db43edeb53d3bba8ffe

Files: 80c90c52e4088319b7d48db43edeb53d3bba8ffe / 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