In the code example (catcoding) the backing webview logic is written as an anonymous function in JavaScript however I would like to build this backing logic in Typescript.
I have tired to reproduce this logic as a typescript package with requireJS but I can't get this to work.
// This script will be run within the webview itself
// It cannot access the main VS Code APIs directly.
(function () {
const vscode = acquireVsCodeApi();
…
}();
I expect to build this backing WebView logic within TypeScript so that I get the static typechecking.