getFamily

Function

return the Hub family given an item's type

  • getFamily(type: string) : "dataset" | "content" | "event" | "team" | "document" | "map" | "app" | "site" | "initiative" | "template" | "people" | "feedback"

Parameters

Parameter Type Default Notes
type Required string

item type

Returns

Hub family

"dataset" | "content" | "event" | "team" | "document" | "map" | "app" | "site" | "initiative" | "template" | "people" | "feedback"

Function defined in common/src/content/get-family.ts:18