Skip to content

yandex-cloud/function-ts-types

Repository files navigation

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!'
    };
}