@data-fair/lib-common-types 1.5.4 → 1.6.0
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/account/.type/index.d.ts
CHANGED
|
@@ -22,6 +22,6 @@ export type AccountKeys = {
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
export declare function validate(data: any): data is Account
|
|
25
|
-
export declare function assertValid(data: any, options?: import('@data-fair/lib-
|
|
26
|
-
export declare function returnValid(data: any, options?: import('@data-fair/lib-
|
|
25
|
+
export declare function assertValid(data: any, options?: import('@data-fair/lib-validation').AssertValidOptions): asserts data is Account
|
|
26
|
+
export declare function returnValid(data: any, options?: import('@data-fair/lib-validation').AssertValidOptions): Account
|
|
27
27
|
|
package/account/.type/index.js
CHANGED
|
@@ -80,6 +80,6 @@ export type TopicRef = {
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
export declare function validate(data: any): data is Notification
|
|
83
|
-
export declare function assertValid(data: any, options?: import('@data-fair/lib-
|
|
84
|
-
export declare function returnValid(data: any, options?: import('@data-fair/lib-
|
|
83
|
+
export declare function assertValid(data: any, options?: import('@data-fair/lib-validation').AssertValidOptions): asserts data is Notification
|
|
84
|
+
export declare function returnValid(data: any, options?: import('@data-fair/lib-validation').AssertValidOptions): Notification
|
|
85
85
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-fair/lib-common-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Shared schemas and built type definitions in the data-fair stack.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepublishOnly": "cd .. && npm run prepublishOnly",
|
|
8
8
|
"build": "cd .. && npm run build"
|
|
9
9
|
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@data-fair/lib-validation": "^1.0.0"
|
|
12
|
+
},
|
|
10
13
|
"devDependencies": {},
|
|
11
14
|
"files": [
|
|
12
15
|
"**/schema.json",
|
package/session/.type/index.d.ts
CHANGED
|
@@ -69,6 +69,6 @@ export type Account = {
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
export declare function validate(data: any): data is SessionState
|
|
72
|
-
export declare function assertValid(data: any, options?: import('@data-fair/lib-
|
|
73
|
-
export declare function returnValid(data: any, options?: import('@data-fair/lib-
|
|
72
|
+
export declare function assertValid(data: any, options?: import('@data-fair/lib-validation').AssertValidOptions): asserts data is SessionState
|
|
73
|
+
export declare function returnValid(data: any, options?: import('@data-fair/lib-validation').AssertValidOptions): SessionState
|
|
74
74
|
|
package/session/.type/index.js
CHANGED