export type Channel = 'email' | 'sms' | 'whatsapp';

export const CHANNELS: readonly Channel[] = ['email', 'sms', 'whatsapp'] as const;

export function isChannel(val: unknown): val is Channel {
  return typeof val === 'string' && (CHANNELS as readonly string[]).includes(val);
}

