clsx.d.ts
This file
Path
clsx.d.ts
10 lines · 337 bytes · TypeScript
Last changed by
fix(types): include `bigint` in `ClassValue` type (#96)Viliam Kopeckýbefore adoption3d960ab
History of this fileTake it
break: include "exports" map w/ "types" conditions (#57)Remco Haszingbefore adoption3ec8e9f
line 1why, one step back1declare namespace clsx {fix(types): include `bigint` in `ClassValue` type (#96)Viliam Kopeckýbefore adoption3d960ab
line 2why, one step back2 type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;break: include "exports" map w/ "types" conditions (#57)Remco Haszingbefore adoption3ec8e9f
lines 3–6why, one step back3 type ClassDictionary = Record<string, any>;4 type ClassArray = ClassValue[];5 function clsx(...inputs: ClassValue[]): string;6}Chore: Add TypeScript definitions (#5)Marais Rossouwbefore adoption08d028f
line 7why, one step back7break: include "exports" map w/ "types" conditions (#57)Remco Haszingbefore adoption3ec8e9f
lines 8–10why, one step back8declare function clsx(...inputs: clsx.ClassValue[]): string;910export = clsx;