@aeriajs/types 0.0.24 → 0.0.26

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.
@@ -4,7 +4,14 @@ export type FinalCondition<TSchema extends JsonSchema = any> = {
4
4
  operator: FinalOperator;
5
5
  term1: PropertiesWithId<TSchema>;
6
6
  term2: any;
7
- else?: any;
7
+ fromState?: boolean;
8
+ };
9
+ export type RegexCondition<TSchema extends JsonSchema = any> = {
10
+ operator: 'regex';
11
+ term1: PropertiesWithId<TSchema>;
12
+ term2: string;
13
+ fromState?: boolean;
14
+ regexOptions?: string;
8
15
  };
9
16
  export type TruthyCondition<TSchema extends JsonSchema = any> = {
10
17
  operator: 'truthy';
@@ -19,4 +26,6 @@ export type AndCondition<TSchema extends JsonSchema = any> = {
19
26
  export type NotCondition<TSchema extends JsonSchema = any> = {
20
27
  not: Condition<TSchema>;
21
28
  };
22
- export type Condition<TSchema extends JsonSchema = any> = FinalCondition<TSchema> | TruthyCondition<TSchema> | AndCondition<TSchema> | OrCondition<TSchema> | NotCondition<TSchema>;
29
+ export type Condition<TSchema extends JsonSchema = any> = (FinalCondition<TSchema> | RegexCondition<TSchema> | TruthyCondition<TSchema> | AndCondition<TSchema> | OrCondition<TSchema> | NotCondition<TSchema>) & {
30
+ else?: any;
31
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -24,9 +24,6 @@
24
24
  "devDependencies": {
25
25
  "@phosphor-icons/core": "^2.0.8"
26
26
  },
27
- "peerDependencies": {
28
- "@phosphor-icons/core": "^2.0.8"
29
- },
30
27
  "scripts": {
31
28
  "test": "echo skipping",
32
29
  "lint": "eslint src",