react-dayo
Version:
A Queue component for notification etc
19 lines (18 loc) • 674 B
TypeScript
import React from 'react';
import { DayoOptions } from 'core-dayo';
export declare const defaultOptions: {
to: "top" | "bottom";
position: "left" | "right" | "center";
maxLength: number;
};
/**
* To create the `Dayo` component and also`dispatch` function to pass a seed into `Dayo`
*/
export declare const createDayo: <BlockComponentProps extends object = {}, BCP extends BlockComponentProps = BlockComponentProps>(userOptions?: Partial<DayoOptions>) => [React.ComponentClass<Partial<DayoOptions>, any>, (builder: {
seed: {
issue(): AsyncIterable<unknown> & {
values: any;
};
};
values: any;
}) => () => Promise<void>];