import * as voidElements from 'void-elements'; let isVoid: boolean | undefined = voidElements.span; isVoid = voidElements.input;