AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
function toStringArray(value: unknown[], fieldLabel: string): string[] {
return value.map((item, index) => {
if (typeof item !== 'string' || item.trim() === '') {
throw new Error(
`${fieldLabel} contains an invalid entry at position ${
index + 1
}: expected a non-empty string.`
);
}
return item;
});
}
export const gmailValidation = {
toStringArray,
};