@juzhenfe/modules 2.3.0 → 2.3.3
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.min.css +44 -44
- package/dist/index.min.js +2 -2
- package/dist/packages/modules/index.d.ts +1 -0
- package/dist/packages/utils/fn-list/index.d.ts +1 -1
- package/dist/packages/utils/load-resource/index.d.ts +1 -1
- package/dist/packages/utils/strategy/index.d.ts +1 -1
- package/dist/types/shims-vue-properties.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../types/upload.d.ts" />
|
|
2
2
|
/// <reference path="../../types/editor.d.ts" />
|
|
3
|
+
/// <reference path="../../types/shims-vue-properties.d.ts" />
|
|
3
4
|
import { App } from 'vue';
|
|
4
5
|
import { InstallOptions } from '../../types/type';
|
|
5
6
|
import Upload from '../upload';
|
|
@@ -6,6 +6,6 @@ export default class FnList<T = any> {
|
|
|
6
6
|
clearAfterFire: boolean;
|
|
7
7
|
constructor(clearAfterFire?: boolean);
|
|
8
8
|
add(fn: FuncItem<T>): void;
|
|
9
|
-
fire(...rest: any[]): Promise<
|
|
9
|
+
fire(...rest: any[]): Promise<any[]>;
|
|
10
10
|
remove(fn?: FuncItem<T>): void;
|
|
11
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
declare type LoadType = 'js' | 'css' | 'normal';
|
|
2
|
-
declare const loadResource: (filename: string, dirs?: string[], type?: LoadType) => Promise<
|
|
2
|
+
declare const loadResource: <T = any>(filename: string, dirs?: string[], type?: LoadType) => Promise<false | T>;
|
|
3
3
|
export default loadResource;
|
|
@@ -6,6 +6,6 @@ export default class Stragety<K = string, T = any> {
|
|
|
6
6
|
has(stragetyName: K): boolean;
|
|
7
7
|
get(stragetyName: K): FnList<T>;
|
|
8
8
|
add(stragetyName: K | '*', stragetyFunc: FuncItem<T>): void;
|
|
9
|
-
fire(stragetyName: K, ...rest: any[]): Promise<false |
|
|
9
|
+
fire(stragetyName: K, ...rest: any[]): Promise<false | any[]>;
|
|
10
10
|
remove(stragetyName: K, stragetyFunc?: FuncItem<T>): void;
|
|
11
11
|
}
|