question

Jan Vacek avatar image
Jan Vacek asked

Azure functions Typescript types (interfaces)

Hello, I am writing cloudscript with Typescript definitions provided by you (some PlayFab employee created it on github), but what about azure functions, are there any definitions to download and use for writing fully-typed typescript code?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JayZuo avatar image
JayZuo answered

Azure Function has built-in TypeScript support, see JavaScript developer reference for Azure Functions. We can use PlayFab NodeJS SDK in Azure Function more easily than Legacy CloudScript. The NodeJS SDK has all interfaces defined already.

However, if you mean to the interface of CloudScript context models, currently, we only build the C# ones as PlayFab CloudScript using Azure Functions Context Models - PlayFab | Microsoft Docs. You can build the TypeScript ones for them by yourself as per CloudScript using Azure Functions helper class.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jan Vacek avatar image Jan Vacek commented ·

@Jay Zuo, and what about this? https://github.com/PlayFab/SdkTestingCloudScript/blob/master/Scripts/typings/PlayFab/CloudScript.d.ts

Is it usable with azure functions? What are the differences?

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.