@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
10 lines (9 loc) • 400 B
TypeScript
/**
* Allow to run methods from the given provider interface across all providers seamlessly.
* Handles promise racing and discards rejected promises safely.
*/
declare const _default: <P>(providers: (P | Promise<P>)[]) => {
invokeList: <T>(methodName: keyof P, args?: any[]) => Promise<T[]>;
invokeSingle: <T>(methodName: keyof P, args?: any[]) => Promise<T>;
};
export default _default;