@fangxq/request
Advanced tools
Comparing version 0.0.28 to 0.0.29
// import { TReq,TRes } from './shared'; | ||
export async function call<TReq,TRes>(target: string, req: TReq): Promise<{ data?: TRes, ws?: typeof global['WebSocket'] }> | ||
export async function call(target: string, req: any): Promise<{ data?: any, ws?: typeof global['WebSocket'] }> |
// import { TReq,TRes } from './shared'; | ||
type thandler = <TReq, TRes>(src: string, req: TReq, res: { data?: TRes, use_ws?: (ws: typeof global.WebSocket) => Promise<void>})=> Promise<void>; | ||
export type Thandler = (src: string, req: any, res: { data?: any, use_ws?: (ws: typeof global.WebSocket) => Promise<void>})=> Promise<void>; | ||
export async function listen<TReq, TRes>(host: string, port: number, handler: thandler<TReq, TRes>): Promise<import('https').Server> | ||
export async function listen(host: string, port: number, handler: thandler): Promise<import('https').Server> |
{ | ||
"name": "@fangxq/request", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
4602