import { Webview } from "https://deno.land/x/webview@0.8.1/src/webview.ts";
Binds a callback so that it will appear in the webview with the given name as a global async JavaScript function. Callback receives a seq and req value. The seq parameter is an identifier for using Webview.return to return a value while the req parameter is a string of an JSON array representing the arguments passed from the JavaScript function call.
Parameters
A callback which takes two strings as parameters: seq
and req
and the passed arg pointer
optional
arg: Deno.PointerValue | null = [UNSUPPORTED]A pointer which is going to be passed to the callback once called