Convert imports or exports to import type
and export type
when possible.
For imports:
// CONVERT THIS
import UserComponent, { UserComponentProps } from './UserComponent';
// TO
import UserComponent from './UserComponent';
import type { UserComponentProps } from "./UserComponent";
For exports:
// CONVERT THIS
export { UserComponentProps, UserComponent } from './UserComponent';
export { UserType } from './types';
export { DEFAULT_USER } from './constants';
// TO
export { UserComponent } from './UserComponent';
export type { UserComponentProps } from "./UserComponent";
export type { UserType } from "./types";
export { DEFAULT_USER } from './constants';