Change type import rule (#13751)

Forcing "type" to be explicit, works best will rollup on the frontend to
exclude depdendencies
This commit is contained in:
Félix Malfait
2025-08-08 01:27:05 +02:00
committed by GitHub
parent 525c8bfe3c
commit 8b4b9ef8da
2050 changed files with 5124 additions and 4912 deletions
@@ -1,5 +1,5 @@
import IconListViewGripRaw from '@assets/misc/list-view-grip.svg?react';
import { IconComponentProps } from '@ui/display/icon/types/IconComponent';
import { type IconComponentProps } from '@ui/display/icon/types/IconComponent';
type IconListViewGripProps = Pick<IconComponentProps, 'size' | 'stroke'>;
@@ -1,7 +1,7 @@
import React from 'react';
import { useTheme } from '@emotion/react';
import { RadioProps } from './Radio';
import { type RadioProps } from './Radio';
type RadioGroupProps = React.PropsWithChildren & {
value?: string;
@@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react';
import { type Meta, type StoryObj } from '@storybook/react';
import {
CatalogDecorator,
CatalogStory,
type CatalogStory,
ComponentDecorator,
} from '@ui/testing';
@@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react';
import { type Meta, type StoryObj } from '@storybook/react';
import {
CatalogDecorator,
CatalogStory,
type CatalogStory,
ComponentDecorator,
} from '@ui/testing';
@@ -1,13 +1,13 @@
import { Meta, StoryObj } from '@storybook/react';
import { type Meta, type StoryObj } from '@storybook/react';
import {
CatalogDecorator,
CatalogStory,
type CatalogStory,
ComponentDecorator,
} from '@ui/testing';
import { MAIN_COLORS } from '@ui/theme';
import { useState } from 'react';
import { Toggle, ToggleSize } from '../Toggle';
import { Toggle, type ToggleSize } from '../Toggle';
type InteractiveToggleProps = {
initialValue?: boolean;