@open-xamu-co/ui-common-types 3.0.0-next.20 → 3.0.0-next.21

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/plugin.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xamu-co/ui-common-types",
3
- "version": "3.0.0-next.20",
3
+ "version": "3.0.0-next.21",
4
4
  "description": "Xamu shared types",
5
5
  "author": "@xamu-co",
6
6
  "main": "src/index.ts",
package/src/plugin.ts CHANGED
@@ -4,6 +4,7 @@ import type { tPluginLocale } from "./locale.js";
4
4
  import type { SweetAlertOptions } from "sweetalert2";
5
5
 
6
6
  export type tComponent = (typeof componentNames)[number];
7
+ export type tLogger = (at: string, ...logs: unknown[]) => any;
7
8
 
8
9
  export type tSupportedLangs =
9
10
  | "kr"
@@ -133,4 +134,10 @@ export interface iPluginOptions<ComponentType = unknown> {
133
134
  * @default 10
134
135
  */
135
136
  first?: number;
137
+ /**
138
+ * Logger function for debugging purposes
139
+ *
140
+ * @default console.log
141
+ */
142
+ logger?: tLogger;
136
143
  }