@puq/type 0.4.11 → 0.4.50

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.
Files changed (92) hide show
  1. package/dist/index.d.ts +9 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +9 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/common/decorator-param.d.ts +4 -3
  6. package/dist/lib/common/decorator-param.d.ts.map +1 -1
  7. package/dist/lib/common/empty-class.d.ts +6 -0
  8. package/dist/lib/common/empty-class.d.ts.map +1 -0
  9. package/dist/lib/common/empty-class.js +4 -0
  10. package/dist/lib/common/empty-class.js.map +1 -0
  11. package/dist/lib/common/key.d.ts +5 -0
  12. package/dist/lib/common/key.d.ts.map +1 -0
  13. package/dist/lib/common/key.js +3 -0
  14. package/dist/lib/common/key.js.map +1 -0
  15. package/dist/lib/common/object-literal.d.ts +6 -1
  16. package/dist/lib/common/object-literal.d.ts.map +1 -1
  17. package/dist/lib/common/optional.d.ts +5 -0
  18. package/dist/lib/common/optional.d.ts.map +1 -0
  19. package/dist/lib/common/optional.js.map +1 -0
  20. package/dist/lib/common/package-json.d.ts +3 -0
  21. package/dist/lib/common/package-json.d.ts.map +1 -1
  22. package/dist/lib/common/puq-options.d.ts +4 -1
  23. package/dist/lib/common/puq-options.d.ts.map +1 -1
  24. package/dist/lib/common/some-function.d.ts +5 -0
  25. package/dist/lib/common/some-function.d.ts.map +1 -0
  26. package/dist/lib/common/some-function.js +3 -0
  27. package/dist/lib/common/some-function.js.map +1 -0
  28. package/dist/lib/common/some-record.d.ts +7 -0
  29. package/dist/lib/common/some-record.d.ts.map +1 -0
  30. package/dist/lib/common/some-record.js +3 -0
  31. package/dist/lib/common/some-record.js.map +1 -0
  32. package/dist/lib/common/some.d.ts +6 -0
  33. package/dist/lib/common/some.d.ts.map +1 -0
  34. package/dist/lib/common/some.js +3 -0
  35. package/dist/lib/common/some.js.map +1 -0
  36. package/dist/lib/dto/count-result.d.ts +3 -0
  37. package/dist/lib/dto/count-result.d.ts.map +1 -1
  38. package/dist/lib/dto/delete-result.d.ts +5 -1
  39. package/dist/lib/dto/delete-result.d.ts.map +1 -1
  40. package/dist/lib/dto/relation-param.d.ts +12 -3
  41. package/dist/lib/dto/relation-param.d.ts.map +1 -1
  42. package/dist/lib/dto/update-result.d.ts +2 -1
  43. package/dist/lib/dto/update-result.d.ts.map +1 -1
  44. package/dist/lib/model/timestamp.d.ts +1 -1
  45. package/dist/lib/model/timestamp.d.ts.map +1 -1
  46. package/dist/lib/property/array.d.ts +8 -2
  47. package/dist/lib/property/array.d.ts.map +1 -1
  48. package/dist/lib/property/big-integer.d.ts +8 -1
  49. package/dist/lib/property/big-integer.d.ts.map +1 -1
  50. package/dist/lib/property/common.d.ts +6 -2
  51. package/dist/lib/property/common.d.ts.map +1 -1
  52. package/dist/lib/property/database-type.d.ts.map +1 -1
  53. package/dist/lib/property/date.d.ts +4 -4
  54. package/dist/lib/property/string-format.d.ts.map +1 -1
  55. package/dist/lib/property/string.d.ts +7 -0
  56. package/dist/lib/property/string.d.ts.map +1 -1
  57. package/dist/lib/ui/icon.d.ts +3 -0
  58. package/dist/lib/ui/icon.d.ts.map +1 -1
  59. package/dist/lib/ui/input-type.d.ts +123 -1
  60. package/dist/lib/ui/input-type.d.ts.map +1 -1
  61. package/dist/lib/ui/input-type.js +2 -1
  62. package/dist/lib/ui/input-type.js.map +1 -1
  63. package/dist/lib/utils/key-of.d.ts +20 -2
  64. package/dist/lib/utils/key-of.d.ts.map +1 -1
  65. package/dist/lib/utils/keys.d.ts +36 -0
  66. package/dist/lib/utils/keys.d.ts.map +1 -0
  67. package/dist/lib/utils/keys.js +3 -0
  68. package/dist/lib/utils/keys.js.map +1 -0
  69. package/dist/lib/utils/set-optional.d.ts +47 -0
  70. package/dist/lib/utils/set-optional.d.ts.map +1 -0
  71. package/dist/lib/utils/set-optional.js +3 -0
  72. package/dist/lib/utils/set-optional.js.map +1 -0
  73. package/dist/lib/utils/set-required.d.ts +47 -0
  74. package/dist/lib/utils/set-required.d.ts.map +1 -0
  75. package/dist/lib/utils/set-required.js +3 -0
  76. package/dist/lib/utils/set-required.js.map +1 -0
  77. package/dist/lib/utils/type.d.ts +17 -0
  78. package/dist/lib/utils/type.d.ts.map +1 -1
  79. package/dist/package.json +1 -1
  80. package/package.json +86 -86
  81. package/dist/lib/utils/optional.d.ts +0 -6
  82. package/dist/lib/utils/optional.d.ts.map +0 -1
  83. package/dist/lib/utils/optional.js.map +0 -1
  84. package/dist/lib/utils/pick-optional.d.ts +0 -3
  85. package/dist/lib/utils/pick-optional.d.ts.map +0 -1
  86. package/dist/lib/utils/pick-optional.js +0 -3
  87. package/dist/lib/utils/pick-optional.js.map +0 -1
  88. package/dist/lib/utils/pick-required.d.ts +0 -3
  89. package/dist/lib/utils/pick-required.d.ts.map +0 -1
  90. package/dist/lib/utils/pick-required.js +0 -3
  91. package/dist/lib/utils/pick-required.js.map +0 -1
  92. /package/dist/lib/{utils → common}/optional.js +0 -0
@@ -0,0 +1,36 @@
1
+ import type { KeyOf } from './key-of.js';
2
+ /**
3
+ * Represents an array of keys from an object type `T`.
4
+ * This utility type creates an array type where each element is a key of `T`,
5
+ * allowing you to define collections of property names. If `T` is not specified,
6
+ * it defaults to `unknown`, resulting in an array of any possible keys.
7
+ *
8
+ * @template T - The object type whose keys populate the array. Defaults to `unknown`.
9
+ * @returns An array type containing elements of type `KeyOf<T>`.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * interface User {
14
+ * name: string;
15
+ * age: number;
16
+ * }
17
+ *
18
+ * type UserKeyArray = Keys<User>;
19
+ * // Result: ('name' | 'age')[]
20
+ *
21
+ * const keys: UserKeyArray = ['name', 'age']; // OK
22
+ * const mixed: UserKeyArray = ['name', 'name', 'age']; // OK (allows duplicates)
23
+ * // const invalid: UserKeyArray = ['name', 'email']; // Error: 'email' is not assignable
24
+ * ```
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * // Default usage with unknown
29
+ * type AnyKeys = Keys;
30
+ * // Result: (string | number | symbol)[]
31
+ *
32
+ * const anyKeys: AnyKeys = ['a', 1, 'b']; // OK
33
+ * ```
34
+ */
35
+ export type Keys<T = unknown> = KeyOf<T>[];
36
+ //# sourceMappingURL=keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,GAAG,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils/keys.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
1
+ import type { KeyOf } from './key-of.js';
2
+ /**
3
+ * Creates a type that makes specific keys of `T` optional while preserving the rest.
4
+ * This utility type takes an object type `T` and a subset of its keys `R`, ensuring
5
+ * that the properties specified in `R` become optional, while other properties retain
6
+ * their original required or optional status.
7
+ *
8
+ * @template T - The original object type to modify.
9
+ * @template R - The keys of `T` that should be made optional. Must extend `KeyOf<T>`.
10
+ *
11
+ * @remarks
12
+ * - Uses `Omit<T, R>` to exclude the keys in `R` from `T`.
13
+ * - Intersects with `Partial<Pick<T, R>>` to make the picked keys optional.
14
+ * - Relies on `KeyOf<T>` (assumed to be `keyof T`) for keyof inference.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * interface User {
19
+ * name: string;
20
+ * age: number;
21
+ * email?: string;
22
+ * }
23
+ *
24
+ * // Make 'name' and 'age' optional, keep 'email' as-is
25
+ * type OptionalUser = SetOptional<User, 'name' | 'age'>;
26
+ *
27
+ * const valid1: OptionalUser = { email: 'alice@example.com' }; // OK
28
+ * const valid2: OptionalUser = { name: 'Alice', age: 30, email: 'alice@example.com' }; // OK
29
+ * const valid3: OptionalUser = { name: 'Bob' }; // OK
30
+ * ```
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * interface Config {
35
+ * host: string;
36
+ * port: number;
37
+ * }
38
+ *
39
+ * // Make 'port' optional
40
+ * type PartialConfig = SetOptional<Config, 'port'>;
41
+ *
42
+ * const config1: PartialConfig = { host: 'localhost' }; // OK
43
+ * const config2: PartialConfig = { host: 'localhost', port: 8080 }; // OK
44
+ * ```
45
+ */
46
+ export type SetOptional<T, R extends KeyOf<T>> = Omit<T, R> & Partial<Pick<T, R>>;
47
+ //# sourceMappingURL=set-optional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-optional.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/set-optional.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=set-optional.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils/set-optional.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
1
+ import type { KeyOf } from './key-of.js';
2
+ /**
3
+ * Creates a type that makes specific keys of `T` required while preserving the rest.
4
+ * This utility type takes an object type `T` and a subset of its keys `R`, ensuring
5
+ * that the properties specified in `R` are always required, while other properties
6
+ * remain optional or unchanged.
7
+ *
8
+ * @template T - The original object type to modify.
9
+ * @template R - The keys of `T` that should be made required. Must extend `KeyOf<T>`.
10
+ *
11
+ * @remarks
12
+ * - Uses `Omit<T, R>` to exclude the keys in `R` from `T`.
13
+ * - Intersects with `Required<Pick<T, R>>` to make the picked keys required.
14
+ * - Relies on `KeyOf<T>` (assumed to be `keyof T`) for keyof inference.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * interface User {
19
+ * name?: string;
20
+ * age?: number;
21
+ * email?: string;
22
+ * }
23
+ *
24
+ * // Make 'name' and 'age' required, keep 'email' optional
25
+ * type RequiredUser = SetRequired<User, 'name' | 'age'>;
26
+ *
27
+ * const valid: RequiredUser = { name: 'Alice', age: 30 }; // OK
28
+ * const validWithEmail: RequiredUser = { name: 'Bob', age: 25, email: 'bob@example.com' }; // OK
29
+ * // const invalid: RequiredUser = { name: 'Charlie' }; // Error: 'age' is required
30
+ * ```
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * interface Config {
35
+ * host: string;
36
+ * port?: number;
37
+ * }
38
+ *
39
+ * // Make 'port' required
40
+ * type FullConfig = SetRequired<Config, 'port'>;
41
+ *
42
+ * const config: FullConfig = { host: 'localhost', port: 8080 }; // OK
43
+ * // const incomplete: FullConfig = { host: 'localhost' }; // Error: 'port' is required
44
+ * ```
45
+ */
46
+ export type SetRequired<T, R extends KeyOf<T>> = Omit<T, R> & Required<Pick<T, R>>;
47
+ //# sourceMappingURL=set-required.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-required.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/set-required.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACzD,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=set-required.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils/set-required.ts"],"names":[],"mappings":""}
@@ -1,3 +1,20 @@
1
+ /**
2
+ * Represents a constructor function that creates instances of type `T`.
3
+ * @template T - The type of the instance created by the constructor. Defaults to `unknown`.
4
+ * @extends Function - Inherits from the base `Function` type.
5
+ * @example
6
+ * ```typescript
7
+ * class User {
8
+ * constructor(name: string) {
9
+ * this.name = name;
10
+ * }
11
+ * name: string;
12
+ * }
13
+ * const UserConstructor: Type<User> = User;
14
+ * const user = new UserConstructor('Alice');
15
+ * console.log(user.name); // 'Alice'
16
+ * ```
17
+ */
1
18
  export interface Type<T = any> extends Function {
2
19
  new (...args: any[]): T;
3
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,IAAI,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,QAAQ;IAC7C,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACxB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,IAAI,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,QAAQ;IAC7C,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puq/type",
3
- "version": "0.4.8",
3
+ "version": "0.4.50",
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.11",
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.50",
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,6 +0,0 @@
1
- /**
2
- * Make the type nullable and undefinedable.
3
- * - T -> T | undefined | null
4
- */
5
- export type Optional<T> = T | undefined | null;
6
- //# sourceMappingURL=optional.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/optional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils/optional.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { KeyOf } from './key-of.js';
2
- export type PickOptional<T, R extends KeyOf<T>> = Omit<T, R> & Partial<Pick<T, R>>;
3
- //# sourceMappingURL=pick-optional.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pick-optional.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/pick-optional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1D,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=pick-optional.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils/pick-optional.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { KeyOf } from './key-of.js';
2
- export type PickRequired<T, R extends KeyOf<T>> = Omit<T, R> & Required<Pick<T, R>>;
3
- //# sourceMappingURL=pick-required.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pick-required.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/pick-required.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1D,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=pick-required.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils/pick-required.ts"],"names":[],"mappings":""}
File without changes