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,7 +1,7 @@
|
||||
import isObject from 'lodash.isobject';
|
||||
import lodashCamelCase from 'lodash.camelcase';
|
||||
import upperFirst from 'lodash.upperfirst';
|
||||
import { PascalCase, PascalCasedPropertiesDeep } from 'type-fest';
|
||||
import { type PascalCase, type PascalCasedPropertiesDeep } from 'type-fest';
|
||||
|
||||
export const pascalCase = <T>(text: T) =>
|
||||
upperFirst(lodashCamelCase(text as unknown as string)) as PascalCase<T>;
|
||||
|
||||
Reference in New Issue
Block a user