From 7aa57906b8dc408a19082cbb49dc47d94d52a540 Mon Sep 17 00:00:00 2001 From: Lars Artmann Date: Thu, 18 Apr 2024 03:46:05 +0200 Subject: [PATCH 1/2] Added support for bigint in ClassNameValue type --- src/lib/tw-join.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tw-join.ts b/src/lib/tw-join.ts index 7f2f677b..4e081ed7 100644 --- a/src/lib/tw-join.ts +++ b/src/lib/tw-join.ts @@ -8,7 +8,7 @@ * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com) */ -export type ClassNameValue = ClassNameArray | string | null | undefined | 0 | false +export type ClassNameValue = ClassNameArray | string | null | undefined | 0 | false | bigint type ClassNameArray = ClassNameValue[] export function twJoin(...classLists: ClassNameValue[]): string From 57a5afb3b8a4075ec180fc2cc66e16a29ac932ec Mon Sep 17 00:00:00 2001 From: Lars Artmann Date: Fri, 19 Apr 2024 06:13:05 +0200 Subject: [PATCH 2/2] All all falsely bigint's in ClassNameValue --- src/lib/tw-join.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tw-join.ts b/src/lib/tw-join.ts index 4e081ed7..86d909ec 100644 --- a/src/lib/tw-join.ts +++ b/src/lib/tw-join.ts @@ -8,7 +8,7 @@ * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com) */ -export type ClassNameValue = ClassNameArray | string | null | undefined | 0 | false | bigint +export type ClassNameValue = ClassNameArray | string | null | undefined | 0 | 0n | false type ClassNameArray = ClassNameValue[] export function twJoin(...classLists: ClassNameValue[]): string