default
default: { actions: { cleanupPoll: any; fetchPoll: any; triggerPollEnd: any; updatePollOptions: any }; getters: { isPollEnd: ((state: any) => boolean); poll: ((state: any) => any); pollLoadingState: ((state: any) => any) }; mutations: {}; state: { error: null; loadingState: string; poll: null } }
Type declaration
actions: { cleanupPoll: any; fetchPoll: any; triggerPollEnd: any; updatePollOptions: any }
cleanupPoll:function
- cleanupPoll(__namedParameters: Object): void
Parameters
__namedParameters: Object
Returns void
fetchPoll:function
- fetchPoll(__namedParameters: Object, postId: any): Promise<void>
Parameters
__namedParameters: Object
postId: any
Returns Promise<void>
triggerPollEnd:function
- triggerPollEnd(__namedParameters: Object): void
Parameters
__namedParameters: Object
Returns void
updatePollOptions:function
- updatePollOptions(__namedParameters: Object, options: any): void
Parameters
__namedParameters: Object
options: any
Returns void
getters: { isPollEnd: ((state: any) => boolean); poll: ((state: any) => any); pollLoadingState: ((state: any) => any) }
isPollEnd: ((state: any) => boolean)
Parameters
Returns boolean
poll: ((state: any) => any)
pollLoadingState: ((state: any) => any)
mutations: {}
state: { error: null; loadingState: string; poll: null }
error: null
loadingState: string
poll: null