@hylid/types 4.0.26 → 4.0.28-alpha.0
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/mp.d.ts +18 -0
- package/package.json +1 -1
package/lib/mp.d.ts
CHANGED
|
@@ -275,6 +275,24 @@ export interface MPApi extends Omit<MiniprogramApi, 'request'> {
|
|
|
275
275
|
model: string;
|
|
276
276
|
device: string;
|
|
277
277
|
}>) => void;
|
|
278
|
+
getBackgroundFetchData: (args: AsyncCallback<{
|
|
279
|
+
fetchType: 'pre' | 'jsapiPre';
|
|
280
|
+
timestamp: number;
|
|
281
|
+
fetchedData: Record<string, unknown>;
|
|
282
|
+
} & {
|
|
283
|
+
fetchType: 'pre' | 'jsapiPre';
|
|
284
|
+
}>) => void;
|
|
285
|
+
getEnterOptionsSync: (args: AsyncCallback<{
|
|
286
|
+
path?: string;
|
|
287
|
+
query?: Record<string, unknown>;
|
|
288
|
+
referrerInfo?: {
|
|
289
|
+
appId: string;
|
|
290
|
+
sourceServiceId?: string;
|
|
291
|
+
extraData: Record<string, unknown>;
|
|
292
|
+
};
|
|
293
|
+
scene?: number;
|
|
294
|
+
apiCategory?: 'default' | 'embedded';
|
|
295
|
+
}>) => void;
|
|
278
296
|
}
|
|
279
297
|
export declare type HeadModel = {
|
|
280
298
|
/**
|