export type ClassNamesInput = string | string [ ] ; export function parseClassNames ( raw ) { if ( Array . isArray ( raw ) ) { return raw ; } if ( typeof raw === 'string' ) { return raw . split ( /\s+/ ) ; } return [ ] ; }