2.1.1 • Published 1 year ago

@yandex-cloud/function-types v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

TypeScript type definitions for Yandex Cloud Functions

Installation

npm install -D @yandex-cloud/function-types \ or \ yarn add -D @yandex-cloud/function-types

Usage

import { Handler } from '@yandex-cloud/function-types'

export const handler: Handler.Http = async (event, context) => {
    // do something
    
    return {
        statusCode: 200,
        body: 'hello world!'
    };
}