@rspack/core 1.0.0-alpha.5 → 1.0.0-beta.1

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 (181) hide show
  1. package/compiled/zod/index.d.ts +138 -52
  2. package/compiled/zod/index.js +300 -103
  3. package/compiled/zod/package.json +1 -1
  4. package/compiled/zod-validation-error/index.js +6 -6
  5. package/dist/Compilation.d.ts +22 -4
  6. package/dist/Compilation.js +64 -49
  7. package/dist/Compiler.d.ts +11 -10
  8. package/dist/Compiler.js +42 -42
  9. package/dist/ErrorHelpers.js +2 -4
  10. package/dist/Module.d.ts +1 -0
  11. package/dist/Module.js +3 -6
  12. package/dist/ModuleTypeConstants.d.ts +45 -69
  13. package/dist/ModuleTypeConstants.js +24 -77
  14. package/dist/NormalModule.d.ts +1 -0
  15. package/dist/NormalModule.js +1 -0
  16. package/dist/Stats.js +4 -6
  17. package/dist/Template.d.ts +31 -147
  18. package/dist/Template.js +40 -236
  19. package/dist/builtin-loader/lightningcss/index.d.ts +89 -0
  20. package/dist/builtin-loader/lightningcss/index.js +175 -0
  21. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/BannerPlugin.d.ts +25 -49
  26. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/DefinePlugin.js +9 -13
  34. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/EntryPlugin.d.ts +4 -3
  42. package/dist/builtin-plugin/EntryPlugin.js +1 -0
  43. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/ExternalsPlugin.d.ts +29 -5
  46. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +9 -9
  51. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +2 -2
  55. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.js +4 -1
  59. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
  61. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
  67. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  72. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  73. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  74. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  75. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  76. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  78. package/dist/builtin-plugin/SplitChunksPlugin.js +5 -15
  79. package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  81. package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +15 -23
  82. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  83. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
  84. package/dist/builtin-plugin/base.d.ts +1 -1
  85. package/dist/builtin-plugin/base.js +1 -3
  86. package/dist/builtin-plugin/css-extract/hmr/hotModuleReplacement.d.ts +3 -3
  87. package/dist/builtin-plugin/css-extract/hmr/hotModuleReplacement.js +17 -66
  88. package/dist/builtin-plugin/css-extract/hmr/normalizeUrl.d.ts +2 -0
  89. package/dist/builtin-plugin/css-extract/hmr/{normalize-url.js → normalizeUrl.js} +15 -24
  90. package/dist/builtin-plugin/css-extract/loader.d.ts +8 -3
  91. package/dist/builtin-plugin/css-extract/loader.js +28 -17
  92. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  93. package/dist/config/adapter.d.ts +1 -1
  94. package/dist/config/adapter.js +39 -25
  95. package/dist/config/adapterRuleUse.d.ts +5 -5
  96. package/dist/config/adapterRuleUse.js +23 -1
  97. package/dist/config/browserslistTargetHandler.d.ts +17 -15
  98. package/dist/config/browserslistTargetHandler.js +27 -33
  99. package/dist/config/defaults.js +27 -31
  100. package/dist/config/normalization.d.ts +8 -3
  101. package/dist/config/normalization.js +7 -5
  102. package/dist/config/target.d.ts +48 -109
  103. package/dist/config/target.js +50 -86
  104. package/dist/config/zod.d.ts +2660 -2305
  105. package/dist/config/zod.js +38 -19
  106. package/dist/container/ContainerPlugin.d.ts +7 -7
  107. package/dist/container/ContainerReferencePlugin.d.ts +1 -1
  108. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  109. package/dist/container/options.js +1 -1
  110. package/dist/exports.d.ts +4 -4
  111. package/dist/exports.js +2 -2
  112. package/dist/lib/AbstractMethodError.d.ts +12 -3
  113. package/dist/lib/AbstractMethodError.js +29 -21
  114. package/dist/lib/Cache.d.ts +40 -46
  115. package/dist/lib/Cache.js +43 -78
  116. package/dist/lib/CacheFacade.d.ts +119 -143
  117. package/dist/lib/CacheFacade.js +123 -123
  118. package/dist/lib/EntryOptionPlugin.d.ts +19 -2
  119. package/dist/lib/EntryOptionPlugin.js +22 -6
  120. package/dist/lib/EnvironmentPlugin.d.ts +17 -10
  121. package/dist/lib/EnvironmentPlugin.js +16 -15
  122. package/dist/lib/HookWebpackError.d.ts +27 -33
  123. package/dist/lib/HookWebpackError.js +33 -34
  124. package/dist/lib/IgnoreWarningsPlugin.d.ts +25 -0
  125. package/dist/lib/{ignoreWarningsPlugin.js → IgnoreWarningsPlugin.js} +17 -0
  126. package/dist/lib/LoaderOptionsPlugin.d.ts +18 -9
  127. package/dist/lib/LoaderOptionsPlugin.js +38 -14
  128. package/dist/lib/LoaderTargetPlugin.d.ts +17 -8
  129. package/dist/lib/LoaderTargetPlugin.js +17 -15
  130. package/dist/lib/ModuleFilenameHelpers.d.ts +10 -1
  131. package/dist/lib/ModuleFilenameHelpers.js +10 -3
  132. package/dist/lib/NormalModuleReplacementPlugin.d.ts +15 -5
  133. package/dist/lib/NormalModuleReplacementPlugin.js +15 -5
  134. package/dist/lib/WebpackError.d.ts +29 -22
  135. package/dist/lib/WebpackError.js +17 -29
  136. package/dist/lib/cache/getLazyHashedEtag.d.ts +24 -24
  137. package/dist/lib/cache/getLazyHashedEtag.js +20 -23
  138. package/dist/lib/cache/mergeEtags.d.ts +15 -9
  139. package/dist/lib/cache/mergeEtags.js +23 -22
  140. package/dist/lib/formatLocation.d.ts +13 -8
  141. package/dist/lib/formatLocation.js +20 -20
  142. package/dist/loader-runner/LoaderLoadingError.d.ts +11 -1
  143. package/dist/loader-runner/LoaderLoadingError.js +3 -5
  144. package/dist/loader-runner/index.js +7 -9
  145. package/dist/loader-runner/loadLoader.d.ts +11 -2
  146. package/dist/loader-runner/loadLoader.js +17 -19
  147. package/dist/logging/createConsoleLogger.js +2 -6
  148. package/dist/logging/truncateArgs.js +5 -9
  149. package/dist/node/nodeConsole.js +1 -3
  150. package/dist/rspackOptionsApply.js +2 -2
  151. package/dist/stats/DefaultStatsFactoryPlugin.js +18 -8
  152. package/dist/stats/DefaultStatsPresetPlugin.js +4 -4
  153. package/dist/stats/DefaultStatsPrinterPlugin.js +11 -16
  154. package/dist/stats/StatsFactory.js +13 -17
  155. package/dist/stats/StatsPrinter.js +7 -9
  156. package/dist/util/AssetInfo.js +11 -7
  157. package/dist/util/SplitChunkSize.js +1 -1
  158. package/dist/util/cleverMerge.d.ts +33 -57
  159. package/dist/util/cleverMerge.js +89 -145
  160. package/dist/util/comparators.d.ts +1 -1
  161. package/dist/util/comparators.js +3 -5
  162. package/dist/util/createHash.d.ts +4 -3
  163. package/dist/util/createHash.js +31 -45
  164. package/dist/util/fs.js +9 -13
  165. package/dist/util/hash/BatchedHash.d.ts +24 -9
  166. package/dist/util/hash/BatchedHash.js +16 -13
  167. package/dist/util/hash/index.d.ts +9 -9
  168. package/dist/util/hash/index.js +14 -11
  169. package/dist/util/hash/md4.d.ts +29 -2
  170. package/dist/util/hash/md4.js +7 -3
  171. package/dist/util/hash/wasm-hash.d.ts +52 -5
  172. package/dist/util/hash/wasm-hash.js +19 -22
  173. package/dist/util/hash/xxhash64.d.ts +29 -2
  174. package/dist/util/hash/xxhash64.js +7 -3
  175. package/dist/util/identifier.js +9 -15
  176. package/dist/util/index.js +1 -1
  177. package/dist/util/memoize.js +7 -9
  178. package/package.json +9 -8
  179. package/compiled/enhanced-resolve/index.js +0 -5566
  180. package/dist/builtin-plugin/css-extract/hmr/normalize-url.d.ts +0 -2
  181. package/dist/lib/ignoreWarningsPlugin.d.ts +0 -7
@@ -19,7 +19,7 @@ const printSizes = (sizes, { formatSize = (n) => `${n}` }) => {
19
19
  if (keys.length > 1) {
20
20
  return keys.map(key => `${formatSize(sizes[key])} (${key})`).join(" ");
21
21
  }
22
- else if (keys.length === 1) {
22
+ if (keys.length === 1) {
23
23
  return formatSize(sizes[keys[0]]);
24
24
  }
25
25
  };
@@ -242,9 +242,7 @@ const SIMPLE_PRINTERS = {
242
242
  providedExportsCount === usedExports.length) {
243
243
  return cyan(formatFlag("all exports used"));
244
244
  }
245
- else {
246
- return cyan(formatFlag(`only some exports used: ${usedExports.join(", ")}`));
247
- }
245
+ return cyan(formatFlag(`only some exports used: ${usedExports.join(", ")}`));
248
246
  }
249
247
  }
250
248
  },
@@ -909,23 +907,20 @@ const AVAILABLE_FORMATS = {
909
907
  ];
910
908
  if (time < times[3])
911
909
  return `${time}${unit}`;
912
- else if (time < times[2])
910
+ if (time < times[2])
913
911
  return bold(`${time}${unit}`);
914
- else if (time < times[1])
912
+ if (time < times[1])
915
913
  return green(`${time}${unit}`);
916
- else if (time < times[0])
914
+ if (time < times[0])
917
915
  return yellow(`${time}${unit}`);
918
- else
919
- return red(`${time}${unit}`);
916
+ return red(`${time}${unit}`);
920
917
  }
921
- else {
922
- let timeStr = time.toString();
923
- if (time > 1000) {
924
- timeStr = `${(time / 1000).toFixed(2)}`;
925
- unit = " s";
926
- }
927
- return `${boldQuantity ? bold(timeStr) : timeStr}${unit}`;
918
+ let timeStr = time.toString();
919
+ if (time > 1000) {
920
+ timeStr = `${(time / 1000).toFixed(2)}`;
921
+ unit = " s";
928
922
  }
923
+ return `${boldQuantity ? bold(timeStr) : timeStr}${unit}`;
929
924
  },
930
925
  formatError: (msg, { green, yellow, red }) => {
931
926
  let message = msg;
@@ -98,16 +98,14 @@ class StatsFactory {
98
98
  if (this._inCreate) {
99
99
  return this._create(type, data, baseContext);
100
100
  }
101
- else {
102
- try {
103
- this._inCreate = true;
104
- return this._create(type, data, baseContext);
105
- }
106
- finally {
107
- for (const key of Object.keys(this._caches))
108
- this._caches[key].clear();
109
- this._inCreate = false;
110
- }
101
+ try {
102
+ this._inCreate = true;
103
+ return this._create(type, data, baseContext);
104
+ }
105
+ finally {
106
+ for (const key of Object.keys(this._caches))
107
+ this._caches[key].clear();
108
+ this._inCreate = false;
111
109
  }
112
110
  }
113
111
  _create(type, data, baseContext) {
@@ -168,13 +166,11 @@ class StatsFactory {
168
166
  // run result on merged items
169
167
  return this._forEachLevelWaterfall(this.hooks.result, this._caches.result, type, result, (h, r) => h.call(r, context));
170
168
  }
171
- else {
172
- const object = {};
173
- // run extract on value
174
- this._forEachLevel(this.hooks.extract, this._caches.extract, type, h => h.call(object, data, context));
175
- // run result on extracted object
176
- return this._forEachLevelWaterfall(this.hooks.result, this._caches.result, type, object, (h, r) => h.call(r, context));
177
- }
169
+ const object = {};
170
+ // run extract on value
171
+ this._forEachLevel(this.hooks.extract, this._caches.extract, type, h => h.call(object, data, context));
172
+ // run result on extracted object
173
+ return this._forEachLevelWaterfall(this.hooks.result, this._caches.result, type, object, (h, r) => h.call(r, context));
178
174
  }
179
175
  }
180
176
  exports.StatsFactory = StatsFactory;
@@ -80,15 +80,13 @@ class StatsPrinter {
80
80
  if (this._inPrint) {
81
81
  return this._print(type, object, baseContext);
82
82
  }
83
- else {
84
- try {
85
- this._inPrint = true;
86
- return this._print(type, object, baseContext);
87
- }
88
- finally {
89
- this._levelHookCache.clear();
90
- this._inPrint = false;
91
- }
83
+ try {
84
+ this._inPrint = true;
85
+ return this._print(type, object, baseContext);
86
+ }
87
+ finally {
88
+ this._levelHookCache.clear();
89
+ this._inPrint = false;
92
90
  }
93
91
  }
94
92
  _print(type, object, baseContext) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JsAssetInfo = void 0;
4
4
  class JsAssetInfo {
5
5
  static __from_binding(jsAssetInfo) {
6
- const { immutable, minimized, development, hotModuleReplacement, related, chunkHash, contentHash, javascriptModule, sourceFilename, extras } = jsAssetInfo;
6
+ const { immutable, minimized, development, hotModuleReplacement, related, chunkhash, fullhash, contenthash, javascriptModule, sourceFilename, extras } = jsAssetInfo;
7
7
  return {
8
8
  ...extras,
9
9
  immutable,
@@ -11,14 +11,15 @@ class JsAssetInfo {
11
11
  development,
12
12
  hotModuleReplacement,
13
13
  related,
14
- chunkHash,
15
- contentHash,
14
+ fullhash,
15
+ chunkhash,
16
+ contenthash,
16
17
  javascriptModule,
17
18
  sourceFilename
18
19
  };
19
20
  }
20
21
  static __to_binding(assetInfo = {}) {
21
- let { immutable = false, minimized = false, development = false, hotModuleReplacement = false, related = {}, chunkHash = [], contentHash = [], javascriptModule, sourceFilename, ...extras } = assetInfo;
22
+ let { immutable = false, minimized = false, development = false, hotModuleReplacement = false, related = {}, fullhash = [], chunkhash = [], contenthash = [], javascriptModule, sourceFilename, ...extras } = assetInfo;
22
23
  extras = extras ?? {};
23
24
  return {
24
25
  immutable,
@@ -26,9 +27,12 @@ class JsAssetInfo {
26
27
  development,
27
28
  hotModuleReplacement,
28
29
  related,
29
- chunkHash,
30
- contentHash,
31
- extras
30
+ fullhash,
31
+ chunkhash,
32
+ contenthash,
33
+ extras,
34
+ javascriptModule,
35
+ sourceFilename
32
36
  };
33
37
  }
34
38
  }
@@ -6,7 +6,7 @@ class JsSplitChunkSizes {
6
6
  if (typeof sizes === "number") {
7
7
  return sizes;
8
8
  }
9
- else if (sizes && typeof sizes === "object") {
9
+ if (sizes && typeof sizes === "object") {
10
10
  const chunkSizes = {
11
11
  sizes: sizes
12
12
  };
@@ -1,42 +1,16 @@
1
- export type ObjectParsedPropertyEntry = {
2
- /**
3
- * base value
4
- */
5
- base: any | undefined;
6
- /**
7
- * the name of the selector property
8
- */
9
- byProperty: string | undefined;
10
- /**
11
- * value depending on selector property, merged with base
12
- */
13
- byValues: Map<string, any>;
14
- };
15
- export type ParsedObject = {
16
- /**
17
- * static properties (key is property name)
18
- */
19
- static: Map<string, ObjectParsedPropertyEntry>;
20
- /**
21
- * dynamic part
22
- */
23
- dynamic: {
24
- byProperty: string;
25
- fn: Function;
26
- } | undefined;
27
- };
28
1
  /**
29
- * @template T
30
- * @param {Partial<T>} obj object
31
- * @param {string} property property
32
- * @param {string|number|boolean} value assignment value
33
- * @returns {T} new object
2
+ * The following code is modified based on
3
+ * https://github.com/webpack/webpack/blob/4b4ca3b/lib/util/cleverMerge.js
4
+ *
5
+ * MIT Licensed
6
+ * Author Tobias Koppers @sokra
7
+ * Copyright (c) JS Foundation and other contributors
8
+ * https://github.com/webpack/webpack/blob/main/LICENSE
34
9
  */
35
- export function cachedSetProperty<T>(obj: Partial<T>, property: string, value: string | number | boolean): T;
10
+ type Obj = Record<PropertyKey, any>;
11
+ export declare const DELETE: unique symbol;
36
12
  /**
37
13
  * Merges two given objects and caches the result to avoid computation if same objects passed as arguments again.
38
- * @template T
39
- * @template O
40
14
  * @example
41
15
  * // performs cleverMerge(first, second), stores the result in WeakMap and returns result
42
16
  * cachedCleverMerge({a: 1}, {a: 2})
@@ -44,35 +18,37 @@ export function cachedSetProperty<T>(obj: Partial<T>, property: string, value: s
44
18
  * // when same arguments passed, gets the result from WeakMap and returns it.
45
19
  * cachedCleverMerge({a: 1}, {a: 2})
46
20
  * {a: 2}
47
- * @param {T} first first object
48
- * @param {O} second second object
49
- * @returns {T & O | T | O} merged object of first and second object
21
+ * @param first first object
22
+ * @param second second object
23
+ * @returns merged object of first and second object
50
24
  */
51
- export function cachedCleverMerge<T, O>(first: T, second: O): T | O | (T & O);
25
+ export declare const cachedCleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
26
+ /**
27
+ * @param obj object
28
+ * @param property property
29
+ * @param value assignment value
30
+ * @returns new object
31
+ */
32
+ export declare const cachedSetProperty: (obj: Obj, property: string, value: string | number | boolean) => Obj;
52
33
  /**
53
34
  * Merges two objects. Objects are deeply clever merged.
54
35
  * Arrays might reference the old value with "...".
55
36
  * Non-object values take preference over object values.
56
- * @template T
57
- * @template O
58
- * @param {T} first first object
59
- * @param {O} second second object
60
- * @returns {T & O | T | O} merged object of first and second object
37
+ * @param first first object
38
+ * @param second second object
39
+ * @returns merged object of first and second object
61
40
  */
62
- export function cleverMerge<T, O>(first: T, second: O): T | O | (T & O);
41
+ export declare const cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
63
42
  /**
64
- * @template T
65
- * @template {string} P
66
- * @param {T} obj the object
67
- * @param {P} byProperty the by description
68
- * @param {...any} values values
69
- * @returns {Omit<T, P>|undefined} object with merged byProperty
43
+ * @param obj the object
44
+ * @returns the object without operations like "..." or DELETE
70
45
  */
71
- export function resolveByProperty<T, P extends string>(obj: T, byProperty: P, ...values: any[]): Omit<T, P> | undefined;
46
+ export declare const removeOperations: <O extends Obj>(obj: O) => O;
72
47
  /**
73
- * @template T
74
- * @param {T} obj the object
75
- * @returns {T} the object without operations like "..." or DELETE
48
+ * @param obj the object
49
+ * @param byProperty the by description
50
+ * @param values values
51
+ * @returns object with merged byProperty
76
52
  */
77
- export function removeOperations<T>(obj: T): T;
78
- export const DELETE: unique symbol;
53
+ export declare const resolveByProperty: <O extends Obj | null, P extends PropertyKey>(obj: O, byProperty: P, ...values: any[]) => Omit<O, P> | undefined;
54
+ export {};