catalog-backend: allow type to catalog.rules.allow

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2025-09-05 19:12:33 +02:00
parent 15575563f7
commit 36694fb774
+4 -1
View File
@@ -38,8 +38,11 @@ export interface Config {
* Allow entities of these particular kinds.
*
* E.g. ["Component", "API", "Template", "Location"]
*
* You can also specify the type of the entity by using an object with `kind` and optional `type` properties.
* E.g. [{ kind: "Component", type: "service" }]
*/
allow: Array<string>;
allow: Array<string | { kind: string; type?: string }>;
/**
* Limit this rule to a specific location
*