minidev 1.1.8 → 1.2.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/README.md +1 -213
- package/assets/web-sim/main.js +1 -1
- package/assets/web-sim/simulator/main.js +1 -1
- package/index.d.ts +42 -0
- package/lib/index.js +1 -1
- package/lib/rw_host.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -155,6 +155,12 @@ declare module 'minidev' {
|
|
|
155
155
|
* 设置相关操作
|
|
156
156
|
*/
|
|
157
157
|
config: IMinidevConfig;
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 小程序管理相关操作
|
|
162
|
+
*/
|
|
163
|
+
app: IMinidevApp
|
|
158
164
|
|
|
159
165
|
}
|
|
160
166
|
|
|
@@ -185,6 +191,42 @@ declare module 'minidev' {
|
|
|
185
191
|
|
|
186
192
|
set<T = any>(configName: string, value: T, opts?: IConfigOptions): Promise<void>;
|
|
187
193
|
|
|
194
|
+
/**
|
|
195
|
+
* 设置 **RUNTIME** 的配置项
|
|
196
|
+
*/
|
|
197
|
+
useRuntime(config: Record<string, any>): Promise<void>;
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface IAppInfo {
|
|
202
|
+
|
|
203
|
+
appId: string;
|
|
204
|
+
|
|
205
|
+
appName: string;
|
|
206
|
+
|
|
207
|
+
logoUrl: string;
|
|
208
|
+
|
|
209
|
+
subApplicationType: 'TINYAPP_NORMAL' | 'TINYAPP_PLUGIN' | 'TINYAPP_TEMPLATE'
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface IGetAppUploadedVersionArgs extends IAppIdArgs, IClientTypeOptions {
|
|
213
|
+
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface IMinidevApp {
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* 获取小程序列表
|
|
220
|
+
* @param options
|
|
221
|
+
*/
|
|
222
|
+
getList(options: IClientTypeOptions): Promise<IAppInfo>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* 获取小程序的最新上传版本
|
|
226
|
+
* @param options
|
|
227
|
+
*/
|
|
228
|
+
getUploadedVersion(options: IGetAppUploadedVersionArgs): Promise<string>;
|
|
229
|
+
|
|
188
230
|
}
|
|
189
231
|
|
|
190
232
|
export interface IWebSimulatorLauncher {
|