Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hylid/types

Package Overview
Dependencies
Maintainers
0
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hylid/types - npm Package Compare versions

Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4

8

lib/mp.d.ts

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc