UNPKG

@yandex-cloud/function-types

Version:

TypeScript typings for Serverless Functions in Yandex.Cloud

14 lines (13 loc) 433 B
import type { Http } from "../http"; declare type PickedFunctionEventProps = Pick<Http.Event, "httpMethod" | "headers" | "queryStringParameters" | "requestContext">; export declare namespace Authorizer { type Event = { resource: string; cookies: Record<string, string>; } & PickedFunctionEventProps; type Result = { isAuthorized: boolean; context: Record<string, any>; }; } export {};