UNPKG

weapp-tailwindcss

Version:

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

18 lines (17 loc) 970 B
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from './types/index.js'; type RuntimeJsTransformOptions = { runtimeSet?: Set<string>; } & CreateJsHandlerOptions; export interface GetRuntimeSetOptions { forceRefresh?: boolean | undefined; forceCollect?: boolean | undefined; clearCache?: boolean | undefined; allowEmpty?: boolean | undefined; } export declare function createContext(options?: UserDefinedOptions): { getRuntimeSet: (options?: GetRuntimeSetOptions) => Promise<Set<string>>; transformWxss: (rawCss: string, options?: Partial<IStyleHandlerOptions>) => Promise<import("postcss").Result<import("postcss").Document | import("postcss").Root>>; transformWxml: (rawWxml: string, options?: ITemplateHandlerOptions) => Promise<string>; transformJs: (rawJs: string, options?: RuntimeJsTransformOptions) => Promise<import("./types/index.js").JsHandlerResult>; }; export {};