n8n
Version:
n8n Workflow Automation Tool
4 lines (3 loc) • 324 B
TypeScript
import type { Role } from '@n8n/db';
export declare function assertRoleCompatibleWithMappingType(role: Role, type: 'instance' | 'project'): void;
export declare function assertAndNormalizeProjectIdsForRuleType(type: 'instance' | 'project', explicitProjectIds: string[] | undefined, fallbackWhenOmitted: string[]): string[];