TypeScript typings for Serverless Functions in Yandex.Cloud
npm install @yandex-cloud/function-typesnpm install -D @yandex-cloud/function-types \yarn add -D @yandex-cloud/function-types``typescript
import { Handler } from '@yandex-cloud/function-types'
export const handler: Handler.Http = async (event, context) => {
// do something
return {
statusCode: 200,
body: 'hello world!'
};
}
``