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:
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user