Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.d.ts export default is the interface Message, the right way is export a const value typeof interface Message. #4

Open
jovercao opened this issue Aug 30, 2020 · 0 comments

Comments

@jovercao
Copy link

export interface Message {
  (options: MessageOptions): Promise<MessageReturn>;
  config(options: MessageOptions): MessageOptions;
  install: PluginFunction<MessageOptions>;
  alert(content: string, options: MessageOptions): Promise<MessageReturn>;
  alert(content: string, title: string, options: MessageOptions): Promise<MessageReturn>;
  confirm(content: string, options: MessageOptions): Promise<MessageReturn>;
  confirm(content: string, title: string, options: MessageOptions): Promise<MessageReturn>;
  prompt(content: string, options: MessageOptions): Promise<MessageReturn>;
  prompt(content: string, title: string, options: MessageOptions): Promise<MessageReturn>;
}

export default Message;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant