@rolldown/pluginutils 1.0.0-beta.25 → 1.0.0-beta.26-commit.d3c250b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +0 -9
- package/dist/index.d.ts +0 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
//#region src/composable-filters.d.ts
|
|
2
2
|
type StringOrRegExp = string | RegExp;
|
|
3
|
-
// Inline this type to avoid import it from `rolldown`.
|
|
4
|
-
// The only downside is we need to keep it in sync with `rolldown` manually,
|
|
5
|
-
// it is alright since it is pretty stable now.
|
|
6
3
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
7
4
|
type FilterExpressionKind = FilterExpression["kind"];
|
|
8
5
|
type FilterExpression = And | Or | Not | Id | ModuleType | Code | Query;
|
|
@@ -66,12 +63,6 @@ declare function not(expr: FilterExpression): Not;
|
|
|
66
63
|
declare function id(pattern: StringOrRegExp, params?: IdParams): Id;
|
|
67
64
|
declare function moduleType(pattern: PluginModuleType): ModuleType;
|
|
68
65
|
declare function code(pattern: StringOrRegExp): Code;
|
|
69
|
-
/*
|
|
70
|
-
* There are three kinds of conditions are supported:
|
|
71
|
-
* 1. `boolean`: if the value is `true`, the key must exist and be truthy. if the value is `false`, the key must not exist or be falsy.
|
|
72
|
-
* 2. `string`: the key must exist and be equal to the value.
|
|
73
|
-
* 3. `RegExp`: the key must exist and match the value.
|
|
74
|
-
*/
|
|
75
66
|
declare function query(key: string, pattern: StringOrRegExp | boolean): Query;
|
|
76
67
|
declare function include(expr: FilterExpression): Include;
|
|
77
68
|
declare function exclude(expr: FilterExpression): Exclude;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
//#region src/composable-filters.d.ts
|
|
2
2
|
type StringOrRegExp = string | RegExp;
|
|
3
|
-
// Inline this type to avoid import it from `rolldown`.
|
|
4
|
-
// The only downside is we need to keep it in sync with `rolldown` manually,
|
|
5
|
-
// it is alright since it is pretty stable now.
|
|
6
3
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
7
4
|
type FilterExpressionKind = FilterExpression["kind"];
|
|
8
5
|
type FilterExpression = And | Or | Not | Id | ModuleType | Code | Query;
|
|
@@ -66,12 +63,6 @@ declare function not(expr: FilterExpression): Not;
|
|
|
66
63
|
declare function id(pattern: StringOrRegExp, params?: IdParams): Id;
|
|
67
64
|
declare function moduleType(pattern: PluginModuleType): ModuleType;
|
|
68
65
|
declare function code(pattern: StringOrRegExp): Code;
|
|
69
|
-
/*
|
|
70
|
-
* There are three kinds of conditions are supported:
|
|
71
|
-
* 1. `boolean`: if the value is `true`, the key must exist and be truthy. if the value is `false`, the key must not exist or be falsy.
|
|
72
|
-
* 2. `string`: the key must exist and be equal to the value.
|
|
73
|
-
* 3. `RegExp`: the key must exist and match the value.
|
|
74
|
-
*/
|
|
75
66
|
declare function query(key: string, pattern: StringOrRegExp | boolean): Query;
|
|
76
67
|
declare function include(expr: FilterExpression): Include;
|
|
77
68
|
declare function exclude(expr: FilterExpression): Exclude;
|