weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
27 lines (26 loc) • 1.42 kB
TypeScript
import type { CompilerShadowRunSnapshot } from './shadow-report-session.js';
export declare const COMPILER_SHADOW_GATE_ENV = "WEAPP_TAILWINDCSS_COMPILER_SHADOW_GATE";
export type CompilerShadowGateMode = 'off' | 'report' | 'error';
export type CompilerShadowGateIssue = 'semantic-mismatch' | 'truncated-report' | 'dropped-report';
export interface CompilerShadowGateResult {
mode: CompilerShadowGateMode;
passed: boolean;
issues: CompilerShadowGateIssue[];
snapshot: CompilerShadowRunSnapshot;
}
export interface CompilerShadowGatePayload {
mode: CompilerShadowGateMode;
passed: boolean;
issues: CompilerShadowGateIssue[];
revision: number;
summary: CompilerShadowRunSnapshot['summary'];
}
export interface FinalizeCompilerShadowRunOptions {
emit?: ((payload: CompilerShadowGatePayload) => void) | undefined;
env?: NodeJS.ProcessEnv | undefined;
revision?: number | undefined;
}
export declare function resolveCompilerShadowGateMode(env?: NodeJS.ProcessEnv): CompilerShadowGateMode;
export declare function evaluateCompilerShadowGate(snapshot: CompilerShadowRunSnapshot, mode?: CompilerShadowGateMode): CompilerShadowGateResult;
export declare function emitCompilerShadowGateResult(payload: CompilerShadowGatePayload): void;
export declare function finalizeCompilerShadowRun(owner: object, options?: FinalizeCompilerShadowRunOptions): CompilerShadowGateResult | undefined;