UNPKG

@altostra/core

Version:

Core library for shared types and logic

11 lines (10 loc) 412 B
import type { Bucket, BucketType } from "./Bucket"; import type { BucketPolicy, BucketPolicyType } from "./BucketPolicy"; export * from "./Bucket"; export declare type S3ResourceTypes = BucketPolicyType | BucketType; export declare type S3ResourceByTypes = { [K in BucketPolicyType]: BucketPolicy; } & { [K in BucketType]: Bucket; }; export declare type S3Resources = S3ResourceByTypes[S3ResourceTypes];