Slide 12
Slide 12 text
TypeScript サポート
Node.js ベースでの Azure Functions 開発が安全・快適に!
import { AzureFunction, Context } from "@azure/functions";
const cosmosDBTrigger: AzureFunction = async function(
context: Context,
documents: Tweet[]
): Promise {
if (!!documents && documents.length > 0) {
context.log("Document: ", documents[0].tweetText);
}
context.bindings.signalRMessages = [
{
target: "newMessage",
arguments: [documents]
}
];
};