Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 662 Bytes

TypeAlias.StringConstant.md

File metadata and controls

34 lines (22 loc) · 662 Bytes

clsx-plusDocs


clsx-plus / StringConstant

Type Alias: StringConstant<Str>

type StringConstant<Str>: [UnionToIntersection<Str>] extends [never] ? never : Str extends string ? string extends Str ? never : Str : never;

Internal

A type that ensures the input is an exact string constant. Union types will result in never.

Type Parameters

Type Parameter

Str

Defined in

src/types-and-constants.ts:154