getFamily

Function

return the Hub family given an item's type

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

Parameters

Parameter Type Default Notes
type Required string

item type

Returns

Hub family

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

Function defined in packages/common/src/content.ts:391