@open-xamu-co/ui-common-types 3.0.0-next.20 → 3.0.0-next.22
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 +1 -1
- package/src/plugin.ts +7 -0
- package/src/values.ts +1 -0
package/package.json
CHANGED
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
|
}
|