UNPKG

svelte-settings

Version:

> [!WARNING] > This project is a work in progress. Do not use it in any of your projects yet.

16 lines (15 loc) 549 B
import { type ClassValue } from 'clsx'; export declare function cn(...inputs: ClassValue[]): string; export type WithoutChild<T> = T extends { child?: any; } ? Omit<T, 'child'> : T; export type WithoutChildren<T> = T extends { children?: any; } ? Omit<T, 'children'> : T; export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>; export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null; }; export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T;