@altostra/core
Version:
Core library for shared types and logic
12 lines (11 loc) • 557 B
TypeScript
import type { Distribution, DistributionType } from "./Distribution";
import type { OriginAccessControl, OriginAccessControlType } from "./OriginAccessControl";
export * from "./Distribution";
export * from "./OriginAccessControl";
export declare type CloudFrontTypes = DistributionType | OriginAccessControlType;
export declare type CloudFrontResourceByType = {
[K in DistributionType]: Distribution;
} & {
[K in OriginAccessControlType]: OriginAccessControl;
};
export declare type CloudFrontResources = CloudFrontResourceByType[CloudFrontTypes];