@altostra/core
Version:
Core library for shared types and logic
17 lines (16 loc) • 629 B
TypeScript
import type { Subscription, SubscriptionType } from "./Subscription";
import type { Topic, TopicType } from "./Topic";
import type { TopicPolicy, TopicPolicyType } from "./TopicPolicy";
export * from "./common";
export * from "./Topic";
export * from "./TopicPolicy";
export * from "./Subscription";
export declare type SNSResourceTypes = SubscriptionType | TopicPolicyType | TopicType;
export declare type SNSResourceByType = {
[K in SubscriptionType]: Subscription;
} & {
[K in TopicPolicyType]: TopicPolicy;
} & {
[K in TopicType]: Topic;
};
export declare type SNSResources = SNSResourceByType[SNSResourceTypes];