Permalink
Browse files

fix #12137. Add miss return type of MessageApi

  • Loading branch information...
zombieJ committed Sep 9, 2018
1 parent 372047e commit e82d7a9c095317d62b054fcf7c2d6666ba54660d
Showing with 7 additions and 7 deletions.
  1. +7 −7 components/message/index.tsx
@@ -156,13 +156,13 @@ const api: any = {
api.warn = api.warning;
export interface MessageApi {
info(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): void;
success(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): void;
error(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): void;
warn(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): void;
warning(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): void;
loading(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): void;
open(args: ArgsProps): void;
info(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
success(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
error(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
warn(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
warning(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
loading(content: ConfigContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
open(args: ArgsProps): MessageType;
config(options: ConfigOptions): void;
destroy(): void;
}

0 comments on commit e82d7a9

Please sign in to comment.