diff --git a/src/components/devsupport/typings.ts b/src/components/devsupport/typings.ts index 2fc7dd366..88c385515 100644 --- a/src/components/devsupport/typings.ts +++ b/src/components/devsupport/typings.ts @@ -8,7 +8,7 @@ export type ChildrenWithProps = ChildrenProp>; * https://github.com/microsoft/TypeScript/issues/29729#issuecomment-505826972 */ // eslint-disable-next-line @typescript-eslint/ban-types -export type LiteralUnion = T | (U & {}); +export type LiteralUnion = T | (string & {}); export type EvaStatus = LiteralUnion<'basic' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'control'>; export type EvaSize = LiteralUnion<'tiny' | 'small' | 'medium' | 'large' | 'giant'>;