zudoku 0.0.0-monetization-standalone.zada7f04c → 0.0.0-monetization-standalone.z2a065bd9

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": "zudoku",
3
- "version": "0.0.0-monetization-standalone.zada7f04c",
3
+ "version": "0.0.0-monetization-standalone.z2a065bd9",
4
4
  "type": "module",
5
5
  "homepage": "https://zudoku.dev",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import { isValidElement } from "react";
2
- import type { ConfigWithMeta } from "../../config/loader.js";
2
+ import type { ZudokuConfig } from "../../config/validators/validate.js";
3
3
  import { isTransformConfigPlugin } from "./plugins.js";
4
4
 
5
5
  export const isPlainObject = (
@@ -43,9 +43,9 @@ export const mergeConfig = <
43
43
  return result;
44
44
  };
45
45
 
46
- export const runPluginTransformConfig = async (
47
- config: ConfigWithMeta,
48
- ): Promise<ConfigWithMeta> => {
46
+ export const runPluginTransformConfig = async <T extends ZudokuConfig>(
47
+ config: T,
48
+ ): Promise<T> => {
49
49
  const plugins = config.plugins ?? [];
50
50
 
51
51
  let result = config;
@@ -60,7 +60,7 @@ export const runPluginTransformConfig = async (
60
60
  });
61
61
  if (!transformed) continue;
62
62
 
63
- result = transformed as ConfigWithMeta;
63
+ result = transformed as T;
64
64
  }
65
65
 
66
66
  return result;