@yandex-cloud/function-types
Version:
TypeScript typings for Serverless Functions in Yandex.Cloud
22 lines (16 loc) • 424 B
Markdown
`npm install -D @yandex-cloud/function-types` \
or \
`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!'
};
}
```