I want two variables to be combined like ${type1}${type2} but spaces can be added between these types.
type Unit = '%' | 'px' | 'em' | 'vh' | 'vh' | 'rem' | 'ex'
type CssSizeType = `${number}${Unit}`
let marginSize : CssSizeType = '10 px' // not error
How do I prevent whitespace? and why doesn't it throw an error in this case?