How To Run .adapterrc In TypeScript?

Hey everyone i’m trying this new packet call cocos-pnp on github.
And all the important things is Chinese i did everything and everything is works perfectly fine except for the .adapterrc.

My adapterrc looking like this and it is works perfectly fine but i don’t know how to call gameStart functions? In the body as you can see.

{
    "buildPlatform": "web-mobile",
    "orientation": "auto",
    "enableSplash": true,
    "TWebOrientations": "portrait",
    "exportChannels": ["AppLovin"],
    "injectOptions": {
        "AppLovin": {
            "body": "<script>gameStart=function(){console.log('hello world');}gameClose=function(){}</script>"
        }
    }
}

Also in AppLovin there is called mraid you can open your store page with using mraid.open but i don’t know how can i call this functions on my game ? Because typescript doesn’t see any of this.