[READ-ONLY] Mirror of https://github.com/mrgnw/sveltauri. svelte tauri template
0

Configure Feed

Select the types of activity you want to include in your feed.

sveltauri / src / lib / utils.ts
631 B 13 lines
1import { clsx, type ClassValue } from 'clsx'; 2import { twMerge } from 'tailwind-merge'; 3 4export function cn(...inputs: ClassValue[]) { 5 return twMerge(clsx(inputs)); 6} 7 8// eslint-disable-next-line @typescript-eslint/no-explicit-any 9export type WithoutChild<T> = T extends { child?: any } ? Omit<T, 'child'> : T; 10// eslint-disable-next-line @typescript-eslint/no-explicit-any 11export type WithoutChildren<T> = T extends { children?: any } ? Omit<T, 'children'> : T; 12export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>; 13export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null };