@hylid/types
Advanced tools
Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4
@@ -17,2 +17,3 @@ /// <reference types="miniprogram" /> | ||
getResponse?: boolean; | ||
[key: string]: any; | ||
} | ||
@@ -94,3 +95,3 @@ export interface getCurrentPagesOptions { | ||
request: PickMPAttr<'request'>; | ||
}) => PickMPAttr<'rpc'>; | ||
}) => PickPromiseAttr<PickMPAttr<"rpc">>; | ||
rpcWithAuth: PickMPAttr<'rpc'>; | ||
@@ -182,2 +183,5 @@ rpcWithAuthAPlus: PickMPAttr<'rpc'>; | ||
popWindow: () => void; | ||
setTransparentTitle: (args: AsyncCallback<{ | ||
transparentTitle: 'none' | 'auto' | 'always' | 'custom'; | ||
}>) => void; | ||
} | ||
@@ -230,3 +234,3 @@ export declare type HeadModel = { | ||
export declare type PickMpReturns<Attr extends keyof MPApi> = ReturnType<PickMPAttr<Attr>>; | ||
export declare type ReturnTypePromise<T> = T extends AsyncCallback<infer S> ? (args?: Omit<T, 'success' | 'fail' | 'complete'> | undefined) => Promise<S> : never; | ||
export declare type ReturnTypePromise<T> = T extends AsyncCallback<infer S> ? (args?: T | undefined) => Promise<S> : never; | ||
export declare type PickPromiseAttr<T> = T extends (args: infer S) => void ? ReturnTypePromise<S> : never; |
{ | ||
"name": "@hylid/types", | ||
"version": "4.0.0-alpha.3", | ||
"version": "4.0.0-alpha.4", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18816
560