chore: build

This commit is contained in:
2026-05-01 22:28:13 +02:00
parent ece977f268
commit 99ce3e4bb3
532 changed files with 5244 additions and 13124 deletions
+24 -5
View File
@@ -141,7 +141,7 @@ export type TransformOptions<C: CustomAtRules> = {|
* For optimal performance, visitors should be as specific as possible about what types of values
* they care about so that JavaScript has to be called as little as possible.
*/
visitor?: Visitor<C>,
visitor?: Visitor<C> | VisitorFunction<C>,
/**
* Defines how to parse custom CSS at-rules. Each at-rule can have a prelude, defined using a CSS
@@ -431,6 +431,13 @@ export type Visitor<C: CustomAtRules> = {|
| EnvironmentVariableVisitor
| EnvironmentVariableVisitors,
|};
export type VisitorDependency = FileDependency | GlobDependency;
export type VisitorOptions = {|
addDependency: (dep: VisitorDependency) => void,
|};
export type VisitorFunction<C: CustomAtRules> = (
options: VisitorOptions
) => Visitor<C>;
export type CustomAtRules = {|
[name: string]: CustomAtRuleDefinition,
|};
@@ -641,7 +648,11 @@ export type DependencyCSSModuleReference = {|
*/
specifier: string,
|};
export type Dependency = ImportDependency | UrlDependency;
export type Dependency =
| ImportDependency
| UrlDependency
| FileDependency
| GlobDependency;
export type ImportDependency = {|
type: "import",
@@ -688,6 +699,14 @@ export type UrlDependency = {|
*/
placeholder: string,
|};
export type FileDependency = {|
type: "file",
filePath: string,
|};
export type GlobDependency = {|
type: "glob",
glob: string,
|};
export type SourceLocation = {|
/**
* The file path in which the dependency exists.
@@ -770,7 +789,7 @@ export type TransformAttributeOptions = {|
* For optimal performance, visitors should be as specific as possible about what types of values
* they care about so that JavaScript has to be called as little as possible.
*/
visitor?: Visitor<empty>,
visitor?: Visitor<empty> | VisitorFunction<empty>,
|};
export type TransformAttributeResult = {|
/**
@@ -820,5 +839,5 @@ declare export function bundleAsync<C: CustomAtRules>(
* Composes multiple visitor objects into a single one.
*/
declare export function composeVisitors<C: CustomAtRules>(
visitors: Visitor<C>[]
): Visitor<C>;
visitors: (Visitor<C> | VisitorFunction<C>)[]
): Visitor<C> | VisitorFunction<C>;