@unocss/core
Advanced tools
Comparing version 0.8.1 to 0.9.0
@@ -162,3 +162,3 @@ declare class UnoGenerator { | ||
} | ||
interface Preset extends ConfigBase { | ||
interface Preset<Theme extends {} = {}> extends ConfigBase<Theme> { | ||
name: string; | ||
@@ -218,3 +218,3 @@ enforce?: 'pre' | 'post'; | ||
getLayer(name?: string): string | undefined; | ||
getLayers(excludes?: string[]): string; | ||
getLayers(includes?: string[], excludes?: string[]): string; | ||
matched: Set<string>; | ||
@@ -221,0 +221,0 @@ } |
@@ -448,4 +448,4 @@ var __defProp = Object.defineProperty; | ||
}; | ||
const getLayers = (excludes) => { | ||
return layers.filter((i) => !(excludes == null ? void 0 : excludes.includes(i))).map((i) => getLayer(i) || "").filter(Boolean).join("\n"); | ||
const getLayers = (includes = layers, excludes) => { | ||
return includes.filter((i) => !(excludes == null ? void 0 : excludes.includes(i))).map((i) => getLayer(i) || "").filter(Boolean).join("\n"); | ||
}; | ||
@@ -452,0 +452,0 @@ return { |
{ | ||
"name": "@unocss/core", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"description": "The instant on-demand Atomic CSS engine.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52002