Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -254,12 +254,77 @@ interface Toast {
/**
* Update an existing toast. By default, we keep the initial content and options of the toast.
*/
update(toastId: number, options?: UpdateOptions): number;
update(toastId: number, options?: UpdateOptions): void;
/**
* Display a toast without a specific type.
*/
(content: ToastContent, options?: ToastOptions): number;
/**
* Helper to set notification type
*/
TYPE: {
/**
* Set notification type to 'info'
*/
INFO: string;
/**
* Set notification type to 'success'
*/
SUCCESS: string;
/**
* Set notification type to 'warning'
*/
WARNING: string;
/**
* Set notification type to 'error'
*/
ERROR: string;
/**
* Set notification type to 'default'
*/
DEFAULT: string;
};
/**
* Helper to set position
*/
POSITION: {
/**
* Set the position to 'top-left'
*/
TOP_LEFT: string;
/**
* Set the position to 'top-right'
*/
TOP_RIGHT: string;
/**
* Set the position to 'top-center'
*/
TOP_CENTER: string;
/**
* Set the position to 'bottom-left'
*/
BOTTOM_LEFT: string;
/**
* Set the position to 'bottom-right'
*/
BOTTOM_RIGHT: string;
/**
* Set the position to 'bottom-center'
*/
BOTTOM_CENTER: string;
}
}
export class ToastContainer extends React.Component<ToastContainerProps> {}