bigbluebutton-html-plugin-sdk
Version:
This repository contains the SDK for developing BigBlueButton plugins. Plugins are React components that can be loaded from external sources by the BigBlueButton HTML5 client to extend its functionalities.
22 lines (21 loc) • 870 B
TypeScript
export interface MutationVariablesWrapper<T> {
variables: T;
}
export type TriggerMutationFunction<T> = (args: MutationVariablesWrapper<T>) => void;
export type UseCustomMutationReturnType<T> = [TriggerMutationFunction<T> | null, object | null];
export type UseCustomMutationFunction = <T = any>(mutation: string, options?: object) => UseCustomMutationReturnType<T>;
export interface UseCustomMutationArguments {
mutation: string;
options?: object;
}
export interface MutationResultObject {
called: boolean;
data?: object;
error?: object;
loading: boolean;
}
export interface MutationHookResultType<T> {
triggerFunction: TriggerMutationFunction<T> | null;
result: MutationResultObject | null;
}
export type SetterFunctionCallbackType<T, K> = (previousObject: MutationHookResultType<T>, dataFromEvent: K) => MutationHookResultType<T>;