UNPKG

517 BTypeScriptView Raw
1import { Construct } from 'constructs';
2import { Alias, AliasOptions } from './alias';
3import { IVersion } from './lambda-version';
4export declare function addAlias(scope: Construct, version: IVersion, aliasName: string, options?: AliasOptions): Alias;
5/**
6 * Map a function over an array and concatenate the results
7 */
8export declare function flatMap<T, U>(xs: T[], fn: ((x: T, i: number) => U[])): U[];
9/**
10 * Flatten a list of lists into a list of elements
11 */
12export declare function flatten<T>(xs: T[][]): T[];