@micro-zoe/micro-app 1.0.0-alpha.1 → 1.0.0-alpha.2
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 +5 -3
- package/lib/index.esm.js +335 -181
- package/lib/index.esm.js.map +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.map +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/typings/global.d.ts +31 -1
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):
|
|
22
|
+
export function getActiveApps(excludeHiddenApp?: boolean): appName[];
|
|
23
23
|
export function getAllApps(): string[];
|
|
24
24
|
type unmountAppOptions = {
|
|
25
25
|
destroy?: boolean;
|
|
@@ -102,8 +102,10 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
102
102
|
export function isBoolean(target: unknown): target is boolean;
|
|
103
103
|
export function isFunction(target: unknown): target is Function;
|
|
104
104
|
export function isPlainObject(target: unknown): target is Record<PropertyKey, unknown>;
|
|
105
|
+
export function isObject(target: unknown): target is Object;
|
|
105
106
|
export function isPromise(target: unknown): target is Promise<unknown>;
|
|
106
|
-
export function isBoundFunction(target: unknown):
|
|
107
|
+
export function isBoundFunction(target: unknown): boolean;
|
|
108
|
+
export function isConstructor(target: unknown): boolean;
|
|
107
109
|
export function isShadowRoot(target: unknown): target is ShadowRoot;
|
|
108
110
|
export function isURL(target: unknown): target is URL;
|
|
109
111
|
/**
|