Expose type as a pulished prop. Update default for type