Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

withConnect

import { withConnect } from "https://raw.githubusercontent.com/rclarey/bt/master/mod.ts";
async function withConnect<T>(
url: string,
reqBody: Uint8Array,
func: (response: Uint8Array) => T,
): Promise<T>;
§
withConnect<T>(url: string, reqBody: Uint8Array, func: (response: Uint8Array) => T): Promise<T>
[src]

§Type Parameters

§Parameters

§
url: string
[src]
§
reqBody: Uint8Array
[src]
§
func: (response: Uint8Array) => T
[src]

§Return Type

§
Promise<T>
[src]