@mptool/all 0.10.11 → 0.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -455,7 +455,7 @@ interface ExtendedComponentMethods extends InstanceEmitterMethods {
455
455
  /**
456
456
  * @private
457
457
  */
458
- _$attached(parent: TrivialComponentInstance | TrivialPageInstance): void;
458
+ $attached(parent: TrivialComponentInstance | TrivialPageInstance): void;
459
459
  }
460
460
  type ComponentInstance<Data extends WechatMiniprogram.Component.DataOption, Props extends PropsOptions, Method extends Partial<WechatMiniprogram.Component.MethodOption>, Behavior extends WechatMiniprogram.Component.BehaviorOption, InstanceProps extends WechatMiniprogram.IAnyObject = Record<never, never>, IsPage extends boolean = false> = WechatMiniprogram.Component.InstanceProperties & WechatMiniprogram.Component.InstanceMethods<Data> & ExtendedComponentMethods & Method & (IsPage extends true ? WechatMiniprogram.Page.ILifetime : Record<never, never>) & InstanceProps & ExtendedComponentProperty & ExtendedPageMethods<Data & InferPropTypes<Props>, InstanceProps & Method & WechatMiniprogram.Component.MixinMethods<Behavior> & (IsPage extends true ? WechatMiniprogram.Page.ILifetime : Record<never, never>)> & {
461
461
  /** 组件数据,**包括内部数据和属性值** */
@@ -1578,7 +1578,9 @@ interface RequestResponse<T extends Record<never, never> | unknown[] | string |
1578
1578
  data: T;
1579
1579
  }
1580
1580
  type RequestType = <T extends Record<never, never> | unknown[] | string | ArrayBuffer = Record<string, any>>(url: string, options?: RequestOptions<T>) => Promise<RequestResponse<T>>;
1581
- declare const request: <T extends Record<never, never> | unknown[] | string | ArrayBuffer = Record<string, any>>(url: string, { method, headers, body, cookieScope, cookieStore, ...options }?: RequestOptions<T>) => Promise<RequestResponse<T>>;
1581
+ declare const request: <T extends Record<never, never> | unknown[] | string | ArrayBuffer = Record<string, any>>(
1582
+ /** 接口地址 */
1583
+ url: string, { method, headers, body, cookieScope, cookieStore, ...options }?: RequestOptions<T>) => Promise<RequestResponse<T>>;
1582
1584
  interface RequestInitOptions extends Pick<WechatMiniprogram.RequestOption, "redirect" | "enableCache" | "enableChunked" | "enableHttp2" | "enableHttpDNS" | "enableQuic" | "httpDNSServiceId" | "forceCellularNetwork" | "timeout"> {
1583
1585
  /**
1584
1586
  * 访问的默认域名
package/dist/index.d.ts CHANGED
@@ -455,7 +455,7 @@ interface ExtendedComponentMethods extends InstanceEmitterMethods {
455
455
  /**
456
456
  * @private
457
457
  */
458
- _$attached(parent: TrivialComponentInstance | TrivialPageInstance): void;
458
+ $attached(parent: TrivialComponentInstance | TrivialPageInstance): void;
459
459
  }
460
460
  type ComponentInstance<Data extends WechatMiniprogram.Component.DataOption, Props extends PropsOptions, Method extends Partial<WechatMiniprogram.Component.MethodOption>, Behavior extends WechatMiniprogram.Component.BehaviorOption, InstanceProps extends WechatMiniprogram.IAnyObject = Record<never, never>, IsPage extends boolean = false> = WechatMiniprogram.Component.InstanceProperties & WechatMiniprogram.Component.InstanceMethods<Data> & ExtendedComponentMethods & Method & (IsPage extends true ? WechatMiniprogram.Page.ILifetime : Record<never, never>) & InstanceProps & ExtendedComponentProperty & ExtendedPageMethods<Data & InferPropTypes<Props>, InstanceProps & Method & WechatMiniprogram.Component.MixinMethods<Behavior> & (IsPage extends true ? WechatMiniprogram.Page.ILifetime : Record<never, never>)> & {
461
461
  /** 组件数据,**包括内部数据和属性值** */
@@ -1578,7 +1578,9 @@ interface RequestResponse<T extends Record<never, never> | unknown[] | string |
1578
1578
  data: T;
1579
1579
  }
1580
1580
  type RequestType = <T extends Record<never, never> | unknown[] | string | ArrayBuffer = Record<string, any>>(url: string, options?: RequestOptions<T>) => Promise<RequestResponse<T>>;
1581
- declare const request: <T extends Record<never, never> | unknown[] | string | ArrayBuffer = Record<string, any>>(url: string, { method, headers, body, cookieScope, cookieStore, ...options }?: RequestOptions<T>) => Promise<RequestResponse<T>>;
1581
+ declare const request: <T extends Record<never, never> | unknown[] | string | ArrayBuffer = Record<string, any>>(
1582
+ /** 接口地址 */
1583
+ url: string, { method, headers, body, cookieScope, cookieStore, ...options }?: RequestOptions<T>) => Promise<RequestResponse<T>>;
1582
1584
  interface RequestInitOptions extends Pick<WechatMiniprogram.RequestOption, "redirect" | "enableCache" | "enableChunked" | "enableHttp2" | "enableHttpDNS" | "enableQuic" | "httpDNSServiceId" | "forceCellularNetwork" | "timeout"> {
1583
1585
  /**
1584
1586
  * 访问的默认域名