Skip to content

Instantly share code, notes, and snippets.

@jtlapp
Created March 26, 2022 02:17
Show Gist options
  • Save jtlapp/bee087a232bae10217e7c39ea665195d to your computer and use it in GitHub Desktop.
Save jtlapp/bee087a232bae10217e7c39ea665195d to your computer and use it in GitHub Desktop.
Focused example of binding and calling MainApi1
import type { MainApi1 } from '../backend/apis/main_api_1.ts';
async function doSomething() {
const mainApi1 = await bindMainApi<MainApi1>("MainApi1");
let result = await mainApi1.methodB();
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment