@aeriajs/types 0.0.13 → 0.0.15
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/property.d.ts +2 -5
- package/dist/schema.d.ts +0 -2
- package/package.json +2 -3
package/dist/property.d.ts
CHANGED
|
@@ -87,14 +87,11 @@ export type BooleanProperty = {
|
|
|
87
87
|
export type ArrayOfRefs = Omit<ArrayProperty, 'items'> & {
|
|
88
88
|
items: RefProperty;
|
|
89
89
|
};
|
|
90
|
-
export type LiteralProperty = {
|
|
91
|
-
literal: string | number | boolean;
|
|
92
|
-
};
|
|
93
90
|
export type GetterProperty = {
|
|
94
91
|
getter: (document: any) => any;
|
|
95
92
|
};
|
|
96
|
-
export type MixedProperty = RefProperty | FileProperty | EnumProperty | ArrayProperty | ObjectProperty | StringProperty | NumberProperty | BooleanProperty |
|
|
97
|
-
export type NonCircularMixedProperty = NonCircularRefProperty | FileProperty | EnumProperty | ArrayProperty | ObjectProperty | StringProperty | NumberProperty | BooleanProperty |
|
|
93
|
+
export type MixedProperty = RefProperty | FileProperty | EnumProperty | ArrayProperty | ObjectProperty | StringProperty | NumberProperty | BooleanProperty | GetterProperty;
|
|
94
|
+
export type NonCircularMixedProperty = NonCircularRefProperty | FileProperty | EnumProperty | ArrayProperty | ObjectProperty | StringProperty | NumberProperty | BooleanProperty | GetterProperty;
|
|
98
95
|
export type PropertyBase = {
|
|
99
96
|
description?: string;
|
|
100
97
|
readOnly?: boolean;
|
package/dist/schema.d.ts
CHANGED
|
@@ -30,8 +30,6 @@ export type InferProperty<T> = T extends TestType<{
|
|
|
30
30
|
}> : T extends TestType<{
|
|
31
31
|
type: 'object';
|
|
32
32
|
}> ? any : T extends TestType<{
|
|
33
|
-
literal: infer K;
|
|
34
|
-
}> ? K : T extends TestType<{
|
|
35
33
|
items: infer K;
|
|
36
34
|
}> ? InferProperty<K>[] : T extends TestType<{
|
|
37
35
|
getter: (doc: any) => infer K;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@phosphor-icons/core": "^2.0.6"
|
|
26
|
-
"mongodb": "^6.1.0"
|
|
25
|
+
"@phosphor-icons/core": "^2.0.6"
|
|
27
26
|
},
|
|
28
27
|
"scripts": {
|
|
29
28
|
"test": "echo skipping",
|