@micro-zoe/micro-app 1.0.0-alpha.1 → 1.0.0-alpha.4

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/lib/index.d.ts CHANGED
@@ -11,7 +11,7 @@ declare module '@micro-zoe/micro-app' {
11
11
  }
12
12
 
13
13
  declare module '@micro-zoe/micro-app/micro_app' {
14
- import type { OptionsType, MicroAppConfigType, lifeCyclesType, plugins, fetchType, Router } from '@micro-app/types';
14
+ import type { OptionsType, MicroAppConfigType, lifeCyclesType, plugins, fetchType, Router, appName } from '@micro-app/types';
15
15
  import preFetch from '@micro-zoe/micro-app/prefetch';
16
16
  import { EventCenterForBaseApp } from '@micro-zoe/micro-app/interact';
17
17
  /**
@@ -19,7 +19,7 @@ declare module '@micro-zoe/micro-app/micro_app' {
19
19
  * @param excludeHiddenApp exclude hidden keep-alive app, default is false
20
20
  * @returns active apps
21
21
  */
22
- export function getActiveApps(excludeHiddenApp?: boolean): string[];
22
+ export function getActiveApps(excludeHiddenApp?: boolean): appName[];
23
23
  export function getAllApps(): string[];
24
24
  type unmountAppOptions = {
25
25
  destroy?: boolean;
@@ -38,9 +38,13 @@ declare module '@micro-zoe/micro-app/micro_app' {
38
38
  shadowDOM?: boolean;
39
39
  destroy?: boolean;
40
40
  inline?: boolean;
41
- disableScopecss?: boolean;
42
- disableSandbox?: boolean;
43
- disableMemoryRouter?: boolean;
41
+ 'disable-scopecss'?: boolean;
42
+ 'disable-sandbox'?: boolean;
43
+ 'disable-memory-router'?: boolean;
44
+ 'disable-patch-request'?: boolean;
45
+ 'keep-router-state'?: boolean;
46
+ 'hidden-router'?: boolean;
47
+ esmodule?: boolean;
44
48
  ssr?: boolean;
45
49
  lifeCycles?: lifeCyclesType;
46
50
  plugins?: plugins;
@@ -102,10 +106,13 @@ declare module '@micro-zoe/micro-app/libs/utils' {
102
106
  export function isBoolean(target: unknown): target is boolean;
103
107
  export function isFunction(target: unknown): target is Function;
104
108
  export function isPlainObject(target: unknown): target is Record<PropertyKey, unknown>;
109
+ export function isObject(target: unknown): target is Object;
105
110
  export function isPromise(target: unknown): target is Promise<unknown>;
106
- export function isBoundFunction(target: unknown): target is Function;
111
+ export function isBoundFunction(target: unknown): boolean;
112
+ export function isConstructor(target: unknown): boolean;
107
113
  export function isShadowRoot(target: unknown): target is ShadowRoot;
108
114
  export function isURL(target: unknown): target is URL;
115
+ export function isProxyDocument(target: unknown): target is Document;
109
116
  /**
110
117
  * format error log
111
118
  * @param msg message