@extk/expressive 0.4.0 → 0.4.1

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.mts CHANGED
@@ -41,32 +41,32 @@ type NumericConfigs = {
41
41
  exclusiveMaximum?: boolean;
42
42
  multipleOf?: number;
43
43
  };
44
- type NumberType = {
44
+ type NumberSchema = {
45
45
  type: 'number';
46
46
  format?: 'float' | 'double';
47
47
  } & NumericConfigs;
48
- type IntegerType = {
48
+ type IntegerSchema = {
49
49
  type: 'integer';
50
50
  format?: 'int32' | 'int64';
51
51
  } & NumericConfigs;
52
- type StringType = {
52
+ type StringSchema = {
53
53
  type: 'string';
54
54
  minLength?: number;
55
55
  maxLength?: number;
56
- format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6';
56
+ format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6' | OtherString;
57
57
  pattern?: string;
58
58
  };
59
- type BooleanType = {
59
+ type BooleanSchema = {
60
60
  type: 'boolean';
61
61
  };
62
- type ArrayType = {
62
+ type ArraySchema = {
63
63
  type: 'array';
64
64
  items: Partial<Schema>;
65
65
  minItems?: number;
66
66
  maxItems?: number;
67
67
  uniqueItems?: boolean;
68
68
  };
69
- type ObjectType = {
69
+ type ObjectSchema = {
70
70
  type: 'object';
71
71
  properties?: Record<string, Schema>;
72
72
  required?: string[];
@@ -79,16 +79,16 @@ type BaseSchema = ({
79
79
  enum?: unknown[];
80
80
  description?: string;
81
81
  default?: unknown;
82
- } & (StringType | NumberType | IntegerType | BooleanType | ArrayType | ObjectType)) | {
82
+ } & (StringSchema | NumberSchema | IntegerSchema | BooleanSchema | ArraySchema | ObjectSchema)) | {
83
83
  $ref: string;
84
84
  };
85
85
  type Schema = BaseSchema | {
86
- allOf: BaseSchema[];
86
+ allOf: Schema[];
87
87
  } | {
88
- anyOf: BaseSchema[];
88
+ anyOf: Schema[];
89
89
  } | {
90
- oneOf: BaseSchema[];
91
- };
90
+ oneOf: Schema[];
91
+ } | unknown;
92
92
  type Content = {
93
93
  description?: string;
94
94
  content?: Partial<Record<ContentType, {
package/dist/index.d.ts CHANGED
@@ -41,32 +41,32 @@ type NumericConfigs = {
41
41
  exclusiveMaximum?: boolean;
42
42
  multipleOf?: number;
43
43
  };
44
- type NumberType = {
44
+ type NumberSchema = {
45
45
  type: 'number';
46
46
  format?: 'float' | 'double';
47
47
  } & NumericConfigs;
48
- type IntegerType = {
48
+ type IntegerSchema = {
49
49
  type: 'integer';
50
50
  format?: 'int32' | 'int64';
51
51
  } & NumericConfigs;
52
- type StringType = {
52
+ type StringSchema = {
53
53
  type: 'string';
54
54
  minLength?: number;
55
55
  maxLength?: number;
56
- format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6';
56
+ format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6' | OtherString;
57
57
  pattern?: string;
58
58
  };
59
- type BooleanType = {
59
+ type BooleanSchema = {
60
60
  type: 'boolean';
61
61
  };
62
- type ArrayType = {
62
+ type ArraySchema = {
63
63
  type: 'array';
64
64
  items: Partial<Schema>;
65
65
  minItems?: number;
66
66
  maxItems?: number;
67
67
  uniqueItems?: boolean;
68
68
  };
69
- type ObjectType = {
69
+ type ObjectSchema = {
70
70
  type: 'object';
71
71
  properties?: Record<string, Schema>;
72
72
  required?: string[];
@@ -79,16 +79,16 @@ type BaseSchema = ({
79
79
  enum?: unknown[];
80
80
  description?: string;
81
81
  default?: unknown;
82
- } & (StringType | NumberType | IntegerType | BooleanType | ArrayType | ObjectType)) | {
82
+ } & (StringSchema | NumberSchema | IntegerSchema | BooleanSchema | ArraySchema | ObjectSchema)) | {
83
83
  $ref: string;
84
84
  };
85
85
  type Schema = BaseSchema | {
86
- allOf: BaseSchema[];
86
+ allOf: Schema[];
87
87
  } | {
88
- anyOf: BaseSchema[];
88
+ anyOf: Schema[];
89
89
  } | {
90
- oneOf: BaseSchema[];
91
- };
90
+ oneOf: Schema[];
91
+ } | unknown;
92
92
  type Content = {
93
93
  description?: string;
94
94
  content?: Partial<Record<ContentType, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extk/expressive",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"