clsx-plus • Docs
clsx-plus / StringConstant
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 Parameter |
---|
|