@puq/type 0.4.6 → 0.4.8

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.ts CHANGED
@@ -30,12 +30,9 @@ export * from './lib/property/string-format.js';
30
30
  export * from './lib/property/string.js';
31
31
  export * from './lib/ui/icon.js';
32
32
  export * from './lib/ui/input-type.js';
33
- export * from './lib/utils/entries.js';
34
33
  export * from './lib/utils/key-of.js';
35
- export * from './lib/utils/keys.js';
36
34
  export * from './lib/utils/optional.js';
37
35
  export * from './lib/utils/pick-optional.js';
38
36
  export * from './lib/utils/pick-required.js';
39
37
  export * from './lib/utils/type.js';
40
- export * from './lib/utils/values.js';
41
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -30,13 +30,10 @@ export * from './lib/property/string-format.js';
30
30
  export * from './lib/property/string.js';
31
31
  export * from './lib/ui/icon.js';
32
32
  export * from './lib/ui/input-type.js';
33
- export * from './lib/utils/entries.js';
34
33
  export * from './lib/utils/key-of.js';
35
- export * from './lib/utils/keys.js';
36
34
  export * from './lib/utils/optional.js';
37
35
  export * from './lib/utils/pick-optional.js';
38
36
  export * from './lib/utils/pick-required.js';
39
37
  export * from './lib/utils/type.js';
40
- export * from './lib/utils/values.js';
41
38
 
42
39
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common/decorator-param.js';\nexport * from './lib/common/object-literal.js';\nexport * from './lib/common/package-json.js';\nexport * from './lib/common/puq-options.js';\nexport * from './lib/dto/count-result.js';\nexport * from './lib/dto/delete-result.js';\nexport * from './lib/dto/relation-param.js';\nexport * from './lib/dto/update-result.js';\nexport * from './lib/dto/validation-error.js';\nexport * from './lib/model/base.js';\nexport * from './lib/model/id.js';\nexport * from './lib/model/timestamp.js';\nexport * from './lib/property/array.js';\nexport * from './lib/property/big-integer.js';\nexport * from './lib/property/boolean.js';\nexport * from './lib/property/common-number.js';\nexport * from './lib/property/common.js';\nexport * from './lib/property/database-type.js';\nexport * from './lib/property/date.js';\nexport * from './lib/property/integer-format.js';\nexport * from './lib/property/integer.js';\nexport * from './lib/property/model.js';\nexport * from './lib/property/number-format.js';\nexport * from './lib/property/number.js';\nexport * from './lib/property/object.js';\nexport * from './lib/property/property-type.js';\nexport * from './lib/property/property.js';\nexport * from './lib/property/relation-options.js';\nexport * from './lib/property/string-format.js';\nexport * from './lib/property/string.js';\nexport * from './lib/ui/icon.js';\nexport * from './lib/ui/input-type.js';\nexport * from './lib/utils/entries.js';\nexport * from './lib/utils/key-of.js';\nexport * from './lib/utils/keys.js';\nexport * from './lib/utils/optional.js';\nexport * from './lib/utils/pick-optional.js';\nexport * from './lib/utils/pick-required.js';\nexport * from './lib/utils/type.js';\nexport * from './lib/utils/values.js';\n"],"names":[],"mappings":"AACA,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,gCAAgC;AAC9C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,yBAAyB;AACvC,cAAc,mCAAmC;AACjD,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,6BAA6B;AAC3C,cAAc,qCAAqC;AACnD,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,sBAAsB;AACpC,cAAc,wBAAwB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts','!./**/index.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common/decorator-param.js';\nexport * from './lib/common/object-literal.js';\nexport * from './lib/common/package-json.js';\nexport * from './lib/common/puq-options.js';\nexport * from './lib/dto/count-result.js';\nexport * from './lib/dto/delete-result.js';\nexport * from './lib/dto/relation-param.js';\nexport * from './lib/dto/update-result.js';\nexport * from './lib/dto/validation-error.js';\nexport * from './lib/model/base.js';\nexport * from './lib/model/id.js';\nexport * from './lib/model/timestamp.js';\nexport * from './lib/property/array.js';\nexport * from './lib/property/big-integer.js';\nexport * from './lib/property/boolean.js';\nexport * from './lib/property/common-number.js';\nexport * from './lib/property/common.js';\nexport * from './lib/property/database-type.js';\nexport * from './lib/property/date.js';\nexport * from './lib/property/integer-format.js';\nexport * from './lib/property/integer.js';\nexport * from './lib/property/model.js';\nexport * from './lib/property/number-format.js';\nexport * from './lib/property/number.js';\nexport * from './lib/property/object.js';\nexport * from './lib/property/property-type.js';\nexport * from './lib/property/property.js';\nexport * from './lib/property/relation-options.js';\nexport * from './lib/property/string-format.js';\nexport * from './lib/property/string.js';\nexport * from './lib/ui/icon.js';\nexport * from './lib/ui/input-type.js';\nexport * from './lib/utils/key-of.js';\nexport * from './lib/utils/optional.js';\nexport * from './lib/utils/pick-optional.js';\nexport * from './lib/utils/pick-required.js';\nexport * from './lib/utils/type.js';\n"],"names":[],"mappings":"AACA,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,gCAAgC;AAC9C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,yBAAyB;AACvC,cAAc,mCAAmC;AACjD,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,6BAA6B;AAC3C,cAAc,qCAAqC;AACnD,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,sBAAsB"}
@@ -1,4 +1,5 @@
1
1
  export type DeleteResult = {
2
2
  affected: number;
3
+ data?: Record<string, any>;
3
4
  };
4
5
  //# sourceMappingURL=delete-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-result.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/delete-result.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"delete-result.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/delete-result.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export type UpdateResult = {
2
2
  affected: number;
3
+ data?: Record<string, any>;
3
4
  };
4
5
  //# sourceMappingURL=update-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-result.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/update-result.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"update-result.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/update-result.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puq/type",
3
- "version": "0.4.4",
3
+ "version": "0.4.8",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
package/package.json CHANGED
@@ -1,87 +1,87 @@
1
- {
2
- "name": "@puq/type",
3
- "version": "0.4.6",
4
- "license": "MIT",
5
- "publishConfig": {
6
- "access": "public",
7
- "tag": "latest"
8
- },
9
- "description": "Common model and utility types",
10
- "author": {
11
- "email": "robert.brightline@gmail.com",
12
- "name": "Robert Brightline",
13
- "url": "https://rbrightline.github.io"
14
- },
15
- "keywords": [
16
- "type",
17
- "model",
18
- "type-utility"
19
- ],
20
- "repository": {
21
- "directory": "libs/type",
22
- "url": "https://github.com/rbrightline/puq/tree/main",
23
- "type": "github"
24
- },
25
- "homepage": "https://rbrightline.github.io/puq/type",
26
- "bugs": {
27
- "email": "robert.brightline@gmail.com",
28
- "url": "https://rbrightline.github.io"
29
- },
30
- "categories": [
31
- "Other"
32
- ],
33
- "contributors": [
34
- {
35
- "email": "robert.brightline@gmail.com",
36
- "name": "Robert Brightline",
37
- "url": "https://rbrightline.github.io"
38
- }
39
- ],
40
- "funding": [
41
- "https://cash.app/$puqlib"
42
- ],
43
- "icon": "https://raw.githubusercontent.com/rbrightline/puq/refs/heads/main/libs/type/favicon.png",
44
- "type": "module",
45
- "main": "./dist/index.js",
46
- "module": "./dist/index.js",
47
- "types": "./dist/index.d.ts",
48
- "exports": {
49
- "./package.json": "./package.json",
50
- ".": {
51
- "types": "./dist/index.d.ts",
52
- "import": "./dist/index.js",
53
- "default": "./dist/index.js"
54
- }
55
- },
56
- "files": [
57
- "dist",
58
- "!**/*.tsbuildinfo"
59
- ],
60
- "nx": {
61
- "sourceRoot": "libs/type/src",
62
- "targets": {
63
- "build": {
64
- "executor": "@nx/js:swc",
65
- "outputs": [
66
- "{options.outputPath}"
67
- ],
68
- "options": {
69
- "outputPath": "libs/type/dist",
70
- "main": "libs/type/src/index.ts",
71
- "tsConfig": "libs/type/tsconfig.lib.json",
72
- "skipTypeCheck": false,
73
- "stripLeadingPaths": true
74
- },
75
- "dependsOn": [
76
- "lint"
77
- ]
78
- },
79
- "doc": {
80
- "command": "cd libs/type && npx compodoc -d ../../public/type -p tsconfig.lib.json -n type"
81
- }
82
- }
83
- },
84
- "dependencies": {
85
- "@swc/helpers": "^0.5.15"
86
- }
1
+ {
2
+ "name": "@puq/type",
3
+ "version": "0.4.8",
4
+ "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "tag": "latest"
8
+ },
9
+ "description": "Common model and utility types",
10
+ "author": {
11
+ "email": "robert.brightline@gmail.com",
12
+ "name": "Robert Brightline",
13
+ "url": "https://rbrightline.github.io"
14
+ },
15
+ "keywords": [
16
+ "type",
17
+ "model",
18
+ "type-utility"
19
+ ],
20
+ "repository": {
21
+ "directory": "libs/type",
22
+ "url": "https://github.com/rbrightline/puq/tree/main",
23
+ "type": "github"
24
+ },
25
+ "homepage": "https://rbrightline.github.io/puq/type",
26
+ "bugs": {
27
+ "email": "robert.brightline@gmail.com",
28
+ "url": "https://rbrightline.github.io"
29
+ },
30
+ "categories": [
31
+ "Other"
32
+ ],
33
+ "contributors": [
34
+ {
35
+ "email": "robert.brightline@gmail.com",
36
+ "name": "Robert Brightline",
37
+ "url": "https://rbrightline.github.io"
38
+ }
39
+ ],
40
+ "funding": [
41
+ "https://cash.app/$puqlib"
42
+ ],
43
+ "icon": "https://raw.githubusercontent.com/rbrightline/puq/refs/heads/main/libs/type/favicon.png",
44
+ "type": "module",
45
+ "main": "./dist/index.js",
46
+ "module": "./dist/index.js",
47
+ "types": "./dist/index.d.ts",
48
+ "exports": {
49
+ "./package.json": "./package.json",
50
+ ".": {
51
+ "types": "./dist/index.d.ts",
52
+ "import": "./dist/index.js",
53
+ "default": "./dist/index.js"
54
+ }
55
+ },
56
+ "files": [
57
+ "dist",
58
+ "!**/*.tsbuildinfo"
59
+ ],
60
+ "nx": {
61
+ "sourceRoot": "libs/type/src",
62
+ "targets": {
63
+ "build": {
64
+ "executor": "@nx/js:swc",
65
+ "outputs": [
66
+ "{options.outputPath}"
67
+ ],
68
+ "options": {
69
+ "outputPath": "libs/type/dist",
70
+ "main": "libs/type/src/index.ts",
71
+ "tsConfig": "libs/type/tsconfig.lib.json",
72
+ "skipTypeCheck": false,
73
+ "stripLeadingPaths": true
74
+ },
75
+ "dependsOn": [
76
+ "lint"
77
+ ]
78
+ },
79
+ "doc": {
80
+ "command": "cd libs/type && npx compodoc -d ../../public/type -p tsconfig.lib.json -n type"
81
+ }
82
+ }
83
+ },
84
+ "dependencies": {
85
+ "@swc/helpers": "^0.5.15"
86
+ }
87
87
  }
@@ -1,7 +0,0 @@
1
- /**
2
- * Extracts the enumerable key-value pairs of an object as a typed array of tuples.
3
- * @param instance - The object to extract entries from.
4
- * @returns An array of `[key, value]` tuples, where `key` is a string and `value` is the corresponding value from `instance`.
5
- */
6
- export declare function entries<T extends Record<any, any>>(instance: T): Array<[key: string, value: T[keyof T]]>;
7
- //# sourceMappingURL=entries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/entries.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAChD,QAAQ,EAAE,CAAC,GACV,KAAK,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAEzC"}
@@ -1,5 +0,0 @@
1
- export function entries(e) {
2
- return Object.entries(e);
3
- }
4
-
5
- //# sourceMappingURL=entries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils/entries.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/**\r\n * Extracts the enumerable key-value pairs of an object as a typed array of tuples.\r\n * @param instance - The object to extract entries from.\r\n * @returns An array of `[key, value]` tuples, where `key` is a string and `value` is the corresponding value from `instance`.\r\n */\r\nexport function entries<T extends Record<any, any>>(\r\n instance: T,\r\n): Array<[key: string, value: T[keyof T]]> {\r\n return Object.entries(instance) as Array<[key: string, value: T[keyof T]]>;\r\n}\r\n"],"names":["entries","instance","Object"],"mappings":"AAOA,OAAO,SAASA,QACdC,CAAW;IAEX,OAAOC,OAAOF,OAAO,CAACC;AACxB"}
@@ -1,8 +0,0 @@
1
- import { Keys } from './key-of.js';
2
- /**
3
- * Extract the keys of the object
4
- * @param instance - the object value that the keys are extracted from
5
- * @returns the keys of the object as `string[]`
6
- */
7
- export declare function keys<T extends Record<any, any>>(instance: T): Keys<T>;
8
- //# sourceMappingURL=keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/keys.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAErE"}
@@ -1,5 +0,0 @@
1
- export function keys(e) {
2
- return Object.keys(e);
3
- }
4
-
5
- //# sourceMappingURL=keys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils/keys.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Keys } from './key-of.js';\r\n\r\n/**\r\n * Extract the keys of the object\r\n * @param instance - the object value that the keys are extracted from\r\n * @returns the keys of the object as `string[]`\r\n */\r\nexport function keys<T extends Record<any, any>>(instance: T): Keys<T> {\r\n return Object.keys(instance) as Keys<T>;\r\n}\r\n"],"names":["keys","instance","Object"],"mappings":"AAQA,OAAO,SAASA,KAAiCC,CAAW;IAC1D,OAAOC,OAAOF,IAAI,CAACC;AACrB"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Extract the values of an object
3
- * @param instance - the object value to extract the values from
4
- * @returns Array of values of the object
5
- */
6
- export declare function values<T extends Record<any, any>>(instance: T): any[];
7
- //# sourceMappingURL=values.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/values.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,GAAG,EAAE,CAErE"}
@@ -1,5 +0,0 @@
1
- export function values(e) {
2
- return Object.values(e);
3
- }
4
-
5
- //# sourceMappingURL=values.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils/values.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/**\r\n * Extract the values of an object\r\n * @param instance - the object value to extract the values from\r\n * @returns Array of values of the object\r\n */\r\nexport function values<T extends Record<any, any>>(instance: T): any[] {\r\n return Object.values(instance);\r\n}\r\n"],"names":["values","instance","Object"],"mappings":"AAOA,OAAO,SAASA,OAAmCC,CAAW;IAC5D,OAAOC,OAAOF,MAAM,CAACC;AACvB"}