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,4 +1,4 @@
import { EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { type EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { deepMerge } from '@/utils';
type DeepMergeTestCase<T extends object> = {
@@ -1,4 +1,4 @@
import { EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { type EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { fromArrayToUniqueKeyRecord } from '@/utils/from-array-to-unique-key-record.util';
type FromArrayToUniqueKeyRecordTestCase = EachTestingContext<{
@@ -1,5 +1,5 @@
import { eachTestingContextFilter } from '@/testing';
import { EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { type EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { extractAndSanitizeObjectStringFields } from '../extractAndSanitizeObjectStringFields';
type TestObject = {
@@ -1,5 +1,5 @@
import { eachTestingContextFilter } from '@/testing';
import { EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { type EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { trimAndRemoveDuplicatedWhitespacesFromObjectStringProperties } from '../trim-and-remove-duplicated-whitespaces-from-object-string-properties';
type SanitizeObjectStringPropertiesTestCase = EachTestingContext<{
input: Record<string, any>;
@@ -1,4 +1,4 @@
import { EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { type EachTestingContext } from '@/testing/types/EachTestingContext.type';
import { trimAndRemoveDuplicatedWhitespacesFromString } from '../trim-and-remove-duplicated-whitespaces-from-string';
type TrimAndRemoveWhitespacesTestCase = EachTestingContext<{
@@ -1,4 +1,4 @@
import { StringPropertyKeys } from '@/utils/trim-and-remove-duplicated-whitespaces-from-object-string-properties';
import { type StringPropertyKeys } from '@/utils/trim-and-remove-duplicated-whitespaces-from-object-string-properties';
import { isDefined } from '@/utils/validation';
export const fromArrayToUniqueKeyRecord = <T extends object>({
@@ -1,4 +1,4 @@
import { StringPropertyKeys } from '@/utils/trim-and-remove-duplicated-whitespaces-from-object-string-properties';
import { type StringPropertyKeys } from '@/utils/trim-and-remove-duplicated-whitespaces-from-object-string-properties';
import { isDefined } from '@/utils/validation';
export const fromArrayToValuesByKeyRecord = <T extends object>({
@@ -1,5 +1,5 @@
import { LABEL_IDENTIFIER_FIELD_METADATA_TYPES } from '@/constants/LabelIdentifierFieldMetadataTypes';
import { FieldMetadataType } from '@/types';
import { type FieldMetadataType } from '@/types';
export const isLabelIdentifierFieldMetadataTypes = (
value: FieldMetadataType,
@@ -1,4 +1,4 @@
import { CountryCode, getCountries } from 'libphonenumber-js';
import { type CountryCode, getCountries } from 'libphonenumber-js';
const ALL_COUNTRIES_CODE = getCountries();