Is there a way to obtain Typescript definitions for the raw JSON schema when creating a Google App Script with a cloud function, as outlined in the following link: https://developers.google.com/workspace/add-ons/alternate-runtimes-quickstart
I've come across @types/google-apps-script
, but it doesn't seem to provide the expected JSON schema (I assume when printJSON()
is eventually called)
Alternatively, is there a way to import the App Script library to be able to invoke printJSON()
on my own and utilize their framework?
{
"action": {
"navigations": [
{
"pushCard": {
"header": {
"title": "Cats!"
},
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": "Your random cat:"
}
},
{
"image": {
"imageUrl": "https://cataas.com/cat"
}
}
]
}
]
}
}
]
}
};