UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

28 lines (27 loc) 1.44 kB
import type { BundleSnapshot } from './bundle-state.js'; import type { InternalUserDefinedOptions } from '../../types/index.js'; interface CreateViteRuntimeClassSetOptions { opts: InternalUserDefinedOptions; initialTailwindRuntime: InternalUserDefinedOptions['tailwindRuntime']; refreshTailwindcssRuntime: InternalUserDefinedOptions['refreshTailwindcssRuntime']; uniAppXEnabled: boolean; customAttributesEntities: unknown; disabledDefaultTemplateHandler: boolean; debug: (format: string, ...args: unknown[]) => void; } export declare function createViteRuntimeClassSet(options: CreateViteRuntimeClassSetOptions): { runtimeState: { tailwindRuntime: import("../../types/index.js").TailwindcssRuntimeLike; readyPromise: Promise<void>; refreshTailwindcssRuntime: (options?: import("../../types/index.js").RefreshTailwindcssRuntimeOptions) => Promise<import("../../types/index.js").TailwindcssRuntimeLike>; }; refreshRuntimeState: (force: boolean) => Promise<void>; ensureRuntimeClassSet: (force?: boolean) => Promise<Set<string>>; ensureBundleRuntimeClassSet: (snapshot: BundleSnapshot, forceRefresh?: boolean, options?: { allowBaselineOnlyInitialSync?: boolean | undefined; baseClassSet?: Set<string> | undefined; refreshBySource?: boolean | undefined; transformOnly?: boolean | undefined; }) => Promise<Set<string>>; }; export {};