Files
NapCatQQ/.pnpm-store/v3/files/8a/0297e51063be30947d62b1b5cc9c760c978f3dbdccba723e0b12d06666da37908c5db0eca5592f817791112c50d52b49b0bbfb1c2c5d745f0ca30e11b4b1f6
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

36 lines
1.1 KiB
Plaintext

import type {Config as TwMergeConfig} from "tailwind-merge";
import type {TVVariants} from "./index";
import type {TVGeneratedScreens} from "./generated";
export type TWMConfig = {
/**
* Whether to merge the class names with `tailwind-merge` library.
* It's avoid to have duplicate tailwind classes. (Recommended)
* @see https://github.com/dcastil/tailwind-merge/blob/v1.8.1/README.md
* @default true
*/
twMerge?: boolean;
/**
* The config object for `tailwind-merge` library.
* @see https://github.com/dcastil/tailwind-merge/blob/v1.8.1/docs/configuration.md
*/
twMergeConfig?: Partial<TwMergeConfig>;
};
export type TVConfig<
// @ts-expect-error
V extends TVVariants | undefined = undefined,
// @ts-expect-error
EV extends TVVariants | undefined = undefined,
> = {
/**
* Whether to enable responsive variant transform.
* Which variants or screens(breakpoints) for responsive variant transform.
* @default false
*/
responsiveVariants?:
| boolean
| TVGeneratedScreens[]
| {[K in keyof V | keyof EV]?: boolean | TVGeneratedScreens[]};
} & TWMConfig;