iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
83 stars 23 forks source link

fix: Use `import type` instead of `import { type }` #996

Closed mayank99 closed 1 year ago

mayank99 commented 1 year ago

import { type X } was added in typescript 4.5. users who are on older versions of typescript were getting build errors, so i've replaced it with import type { X } which is more widely supported.

i did a global regex search for import(.*)type and didn't find any other instances of { type X } imports in our components. there are a few in other workspaces but those are fine to leave.