Function findUsedDeclarations
- findUsedDeclarations(declaration, gvl, model, filterBy, sorted?): (Feature | Purpose | DataCategory)[]
Parameters
- declaration: "purposes" | "specialPurposes" | "features" | "specialFeatures" | "dataCategories"
- gvl: GVL
- model: TCModel
- filterBy: TcfDeclarationFilter
- sorted: boolean = false
Returns (Feature | Purpose | DataCategory)[]
Get a list of used declarations for e.g.
purposes
. It can also return an empty array if the given declaration does not have any items/vendors.