add type prop to window