diff --git a/package.json b/package.json index 4adf72e..37bb8c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bdxio/bdxio.types", - "version": "1.3.2", + "version": "1.3.3", "types": "dist/index.d.ts", "files": [ "/dist" diff --git a/types/Faq.ts b/types/Faq.ts index 36c314b..4fab5b5 100644 --- a/types/Faq.ts +++ b/types/Faq.ts @@ -1,6 +1,8 @@ +export const FAQTargets = ["speakers", "sponsors", "participants"] as const; + export type FAQTarget = { id: number; - target: "speakers" | "sponsors" | "participants"; + target: (typeof FAQTargets)[number]; description?: string; createdAt: string; publishedAt: string; diff --git a/types/index.ts b/types/index.ts index 4df7ee4..f72e0b2 100644 --- a/types/index.ts +++ b/types/index.ts @@ -1,6 +1,7 @@ export type { Category } from "./Category"; export type { Edition } from "./Edition"; export type { FAQQuestion, FAQTarget } from "./Faq"; +export { FAQTargets } from "./Faq"; export type { Format } from "./Format"; export type { Media } from "./Media"; export type { Offer } from "./Offer";