export function normalizeArray (a: T | T[]): T | undefined { return Array.isArray(a) ? a[0] : a }