Created
March 26, 2022 02:17
-
-
Save jtlapp/bee087a232bae10217e7c39ea665195d to your computer and use it in GitHub Desktop.
Focused example of binding and calling MainApi1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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