index.d.ts 899 B

1234567891011121314151617
  1. /// <reference types="miniprogram-api-typings" />
  2. /// <reference types="miniprogram-api-typings" />
  3. /// <reference types="miniprogram-api-typings" />
  4. import { MessageProps } from './message.interface';
  5. declare type Context = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
  6. interface MessageActionOptionsType extends Optional<MessageProps> {
  7. context?: Context;
  8. selector?: string;
  9. }
  10. declare const _default: {
  11. info(options: MessageActionOptionsType): WechatMiniprogram.Component.TrivialInstance;
  12. success(options: MessageActionOptionsType): WechatMiniprogram.Component.TrivialInstance;
  13. warning(options: MessageActionOptionsType): WechatMiniprogram.Component.TrivialInstance;
  14. error(options: MessageActionOptionsType): WechatMiniprogram.Component.TrivialInstance;
  15. hide(options: MessageActionOptionsType): void;
  16. };
  17. export default _default;