UNPKG

str-merge

Version:

String utilities and conflict conditionals (includes tailwind-merge).

6 lines (5 loc) 337 B
export type ocxMap = Record<string, any>; export type ocxKey<T> = T & ocxMap; export type ocxValue = ocxMap | ocxMap[] | ocxValue[] | string | number | null | boolean | undefined | (() => ocxValue); export type ocxValues<T> = T | ocxValue | ocxKey<T>; export declare function ocx<T extends ocxMap>(...inputs: ocxValues<T>[]): ocxKey<T>;