pacc 4.16.1 → 4.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "4.16.1",
3
+ "version": "4.17.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -2,7 +2,7 @@
2
2
 
3
3
  export const baseTypes = new Set(["string", "number", "bigint", "boolean"]);
4
4
 
5
- const types = {
5
+ export const types = {
6
6
  base: { name: "base" },
7
7
 
8
8
  string: { name: "string", extends: "base" },
@@ -13,3 +13,39 @@ export function prepareAttributesDefinitions(newDefinitions: any, presentDefinit
13
13
  export function attributeIterator(definition: any, path?: string[]): any;
14
14
  export function convertValue(value: any, attribute: any): any;
15
15
  export const baseTypes: Set<string>;
16
+ export const types: {
17
+ base: {
18
+ name: string;
19
+ };
20
+ string: {
21
+ name: string;
22
+ extends: string;
23
+ };
24
+ number: {
25
+ name: string;
26
+ extends: string;
27
+ convertValue: (value: any, attribute: any) => any;
28
+ };
29
+ boolean: {
30
+ name: string;
31
+ extends: string;
32
+ convertValue: (value: any, attribute: any) => boolean;
33
+ };
34
+ integer: {
35
+ name: string;
36
+ extends: string;
37
+ convertValue: (value: any, attribute: any) => any;
38
+ };
39
+ "unsigned-integer": {
40
+ name: string;
41
+ extends: string;
42
+ };
43
+ url: {
44
+ name: string;
45
+ extends: string;
46
+ };
47
+ object: {
48
+ name: string;
49
+ extends: string;
50
+ };
51
+ };