UNPKG

@altostra/core

Version:

Core library for shared types and logic

45 lines (44 loc) 1.77 kB
import type { Api, ApiType } from "./Api"; import type { ApiMapping, ApiMappingType } from "./ApiMapping"; import type { ApiAuthorizer, ApiAuthorizerType } from "./Authorizer"; import type { Deployment, DeploymentType } from "./Deployment"; import type { DomainName, DomainNameType } from "./DomainName"; import type { Integration, IntegrationType } from "./Integration"; import type { IntegrationResponse, IntegrationResponseType } from "./IntegrationResponse"; import type { Model, ModelType } from "./Model"; import type { Route, RouteType } from "./Route"; import type { RouteResponse, RouteResponseType } from "./RouteResponse"; import type { Stage, StageType } from "./Stage"; export * from "./Api"; export * from "./ApiMapping"; export * from "./Authorizer"; export * from "./Integration"; export * from "./IntegrationResponse"; export * from "./Model"; export * from "./Route"; export * from "./RouteResponse"; export declare type ApiGatewayV2ResourceType = ApiAuthorizerType | ApiMappingType | ApiType | DeploymentType | DomainNameType | IntegrationResponseType | IntegrationType | ModelType | RouteResponseType | RouteType | StageType; export declare type ApiGatewayV2ResourceByType = { [K in ApiAuthorizerType]: ApiAuthorizer; } & { [K in ApiMappingType]: ApiMapping; } & { [K in ApiType]: Api; } & { [K in DeploymentType]: Deployment; } & { [K in DomainNameType]: DomainName; } & { [K in IntegrationResponseType]: IntegrationResponse; } & { [K in IntegrationType]: Integration; } & { [K in ModelType]: Model; } & { [K in RouteResponseType]: RouteResponse; } & { [K in RouteType]: Route; } & { [K in StageType]: Stage; }; export declare type ApiGatewayV2Resources = ApiGatewayV2ResourceByType[ApiGatewayV2ResourceType];