Skip to content

Commit

Permalink
chore: scripts run
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofan2406 committed Mar 20, 2023
1 parent 00c4e5b commit a3f1963
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/components/Breadcrumb/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface BreadcrumbProps {
rootNode?: BreadcrumbRootNode;
divider?: React.ReactNode;
nodes?: BreadcrumbNodes[];
onClick?: (...args: any[]) => any;
onClick: (...args: any[]) => any;
disabled?: boolean;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfirmModal/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ConfirmModalProps {
/**
* function called when modalApply event is fired
*/
modalApply?: (...args: any[]) => any;
modalApply: (...args: any[]) => any;
/**
* function called when modalClose event is fired
*/
Expand Down
4 changes: 2 additions & 2 deletions src/components/ListPicker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export interface ListPickerProps {
itemType?: string;
labelFormatter?: (...args: any[]) => any;
addonFormatter?: (...args: any[]) => any;
modalApply?: (...args: any[]) => any;
modalApply: (...args: any[]) => any;
modalDescription?: string;
modalClassName?: string;
modalClose?: (...args: any[]) => any;
modalClose: (...args: any[]) => any;
modalFootnote?: string;
modalTitle?: string;
show?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ListPickerPure/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export interface ListPickerPureSelectedItems {

export interface ListPickerPureProps {
allowMultiSelection?: boolean;
deselectItem?: (...args: any[]) => any;
deselectItem: (...args: any[]) => any;
emptyMessage?: string;
emptySvgSymbol?: React.ReactNode;
labelFormatter?: (...args: any[]) => any;
addonFormatter?: (...args: any[]) => any;
itemHeaders?: ListPickerPureItemHeaders;
items?: ListPickerPureItems[];
itemType?: string;
selectItem?: (...args: any[]) => any;
selectItem: (...args: any[]) => any;
selectedItems?: ListPickerPureSelectedItems[];
}

Expand Down
26 changes: 0 additions & 26 deletions src/components/Toast/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@ export interface ToastContainerProps {

declare const ToastContainer: React.FC<ToastContainerProps>;

export type ToastNotificationPosition =
| 'top-right'
| 'top-center'
| 'top-left'
| 'bottom-right'
| 'bottom-center'
| 'bottom-left';

export type ToastNotificationAutoClose = number | boolean;

export type ToastNotificationTheme = 'success' | 'info' | 'alert' | 'attention';

export interface ToastNotificationProps {
/**
* PropTypes.oneOf(['top-right', 'top-center', 'top-left', 'bottom-right', 'bottom-center', 'bottom-left'])
*/
position?: ToastNotificationPosition;
autoClose?: ToastNotificationAutoClose;
title?: string;
theme?: ToastNotificationTheme;
message: React.ReactNode;
}

declare const ToastNotification: React.FC<ToastNotificationProps>;

export type notifyTheme = 'success' | 'info' | 'alert' | 'attention';

export interface notifyProps {
Expand All @@ -69,7 +44,6 @@ declare const dismiss: React.FC<dismissProps>;

declare const Toast: {
Container: typeof ToastContainer;
Notification: typeof ToastNotification;
notify: typeof notify;
dismiss: typeof dismiss;
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/UserListPicker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export interface UserListPickerProps {
* Array of { avatar: PropTypes.string, givenName: PropTypes.string, surname: PropTypes.string, id: PropTypes.number }
*/
initialSelection?: UserListPickerInitialSelection[];
modalApply?: (...args: any[]) => any;
modalApply: (...args: any[]) => any;
modalDescription?: string;
modalClose?: (...args: any[]) => any;
modalClose: (...args: any[]) => any;
modalTitle?: string;
show?: boolean;
/**
Expand Down

0 comments on commit a3f1963

Please sign in to comment.