UNPKG

@yandex-cloud/function-types

Version:

TypeScript typings for Serverless Functions in Yandex.Cloud

22 lines (16 loc) 424 B
# TypeScript type definitions for Yandex Cloud Functions ### Installation `npm install -D @yandex-cloud/function-types` \ or \ `yarn add -D @yandex-cloud/function-types` ### Usage ```typescript import { Handler } from '@yandex-cloud/function-types' export const handler: Handler.Http = async (event, context) => { // do something return { statusCode: 200, body: 'hello world!' }; } ```