generated from cms/tibi-docs
This commit is contained in:
30
types/global.d.ts
vendored
30
types/global.d.ts
vendored
@@ -58,14 +58,28 @@ interface MediaLibrary {
|
||||
id: string
|
||||
}
|
||||
|
||||
type Module =
|
||||
| { id: string; type: "iconCycleCircle"; iconCycleCircle: IconCycleCircle }
|
||||
| { id: string; type: "iconCycleSquare"; iconCycleSquare: IconCycleSquare }
|
||||
| { id: string; type: "worldCard"; worldCard: WorldCard }
|
||||
| { id: string; type: "chefTeam" }
|
||||
| { id: string; type: "employeeTeam" }
|
||||
| { id: string; type: "jobOfferLink"; jobOfferPage: string }
|
||||
| { id: string; type: "jobOffer" }
|
||||
type BaseModule = { id: string }
|
||||
|
||||
type IconCycleModule = BaseModule & {
|
||||
type: "iconCycleCircle" | "iconCycleSquare"
|
||||
iconCycle?: IconCycleCircle | IconCycleSquare
|
||||
}
|
||||
|
||||
type WorldCardModule = BaseModule & {
|
||||
type: "worldCard"
|
||||
worldCard?: WorldCard
|
||||
}
|
||||
|
||||
type JobOfferModule = BaseModule & {
|
||||
type: "jobOfferLink" | "jobOffer"
|
||||
jobOfferPage?: string
|
||||
}
|
||||
|
||||
type SimpleModule = BaseModule & {
|
||||
type: "chefTeam" | "employeeTeam"
|
||||
}
|
||||
|
||||
type Module = IconCycleModule | WorldCardModule | JobOfferModule | SimpleModule
|
||||
|
||||
interface Publication {
|
||||
file: string
|
||||
|
||||
Reference in New Issue
Block a user