Completely updated React, fixed #11, (hopefully)
This commit is contained in:
67
goTorrentWebUI/node_modules/react-toastify/index.d.ts
generated
vendored
67
goTorrentWebUI/node_modules/react-toastify/index.d.ts
generated
vendored
@@ -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> {}
|
||||
|
Reference in New Issue
Block a user