UNPKG

@altostra/core

Version:

Core library for shared types and logic

25 lines (24 loc) 977 B
import type { Alias, AliasType } from "./Alias"; import type { EventSourceMapping, EventSourceMappingType } from "./EventSourceMapping"; import type { Function, FunctionType } from "./Function"; import type { Permission, PermissionType } from "./Permission"; import type { LambdaUrl, LambdaUrlType } from "./Url"; import type { Version, VersionType } from "./Version"; export * from "./Url"; export * from "./Permission"; export * from "./Function"; export declare type LambdaResourceTypes = AliasType | EventSourceMappingType | FunctionType | LambdaUrlType | PermissionType | VersionType; export declare type LambdaResourceByType = { [K in AliasType]: Alias; } & { [K in EventSourceMappingType]: EventSourceMapping; } & { [K in FunctionType]: Function; } & { [K in LambdaUrlType]: LambdaUrl; } & { [K in PermissionType]: Permission; } & { [K in VersionType]: Version; }; export declare type LambdaResources = LambdaResourceByType[LambdaResourceTypes];