git ssb

0+

Piet / ssb-loomio



Tree: 5a278075ec43325cf000c2fcb66c71b38a75df86

Files: 5a278075ec43325cf000c2fcb66c71b38a75df86 / 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