@skmtc/core 0.0.802 → 0.0.803
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/esm/context/CoreContext.d.ts +3 -0
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +17 -12
- package/esm/context/GenerateContext.d.ts +2 -1
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/ParseContext.d.ts +3 -3
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/RenderContext.d.ts +4 -1
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +11 -6
- package/esm/dsl/operation/OperationDriver.d.ts +36 -0
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.js +36 -0
- package/esm/dsl/operation/toOperationBase.d.ts +58 -0
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +46 -0
- package/esm/dsl/operation/toOperationEntry.d.ts +37 -0
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +28 -0
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/oas/array/Array.d.ts +26 -0
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +26 -0
- package/esm/oas/array/array-types.d.ts +12 -0
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +6 -0
- package/esm/oas/boolean/Boolean.d.ts +26 -0
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +26 -0
- package/esm/oas/boolean/toBoolean.d.ts +57 -0
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +57 -0
- package/esm/oas/number/toNumber.d.ts +62 -0
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +62 -0
- package/esm/oas/parameter/Parameter.d.ts +47 -0
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +47 -0
- package/esm/types/CustomValue.d.ts +58 -0
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +58 -0
- package/esm/types/DenoJson.d.ts +24 -0
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +12 -0
- package/esm/types/Enrichments.d.ts +103 -0
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +52 -0
- package/esm/types/GeneratedValue.d.ts +17 -0
- package/esm/types/GeneratedValue.d.ts.map +1 -1
- package/esm/types/Logger.d.ts +9 -0
- package/esm/types/Logger.d.ts.map +1 -0
- package/esm/types/Logger.js +1 -0
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +3 -0
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +17 -12
- package/script/context/GenerateContext.d.ts +2 -1
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/ParseContext.d.ts +3 -3
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/RenderContext.d.ts +4 -1
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +11 -6
- package/script/dsl/operation/OperationDriver.d.ts +36 -0
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.js +36 -0
- package/script/dsl/operation/toOperationBase.d.ts +58 -0
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +46 -0
- package/script/dsl/operation/toOperationEntry.d.ts +37 -0
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +28 -0
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
- package/script/oas/array/Array.d.ts +26 -0
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +26 -0
- package/script/oas/array/array-types.d.ts +12 -0
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +6 -0
- package/script/oas/boolean/Boolean.d.ts +26 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +26 -0
- package/script/oas/boolean/toBoolean.d.ts +57 -0
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +57 -0
- package/script/oas/number/toNumber.d.ts +62 -0
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +62 -0
- package/script/oas/parameter/Parameter.d.ts +47 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +47 -0
- package/script/types/CustomValue.d.ts +58 -0
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +58 -0
- package/script/types/DenoJson.d.ts +24 -0
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +12 -0
- package/script/types/Enrichments.d.ts +103 -0
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +52 -0
- package/script/types/GeneratedValue.d.ts +17 -0
- package/script/types/GeneratedValue.d.ts.map +1 -1
- package/script/types/Logger.d.ts +9 -0
- package/script/types/Logger.d.ts.map +1 -0
- package/script/types/Logger.js +2 -0
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import { type ModuleExport } from './ModuleExport.js';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
+
/**
|
|
5
|
+
* Valibot schema for form field items.
|
|
6
|
+
*
|
|
7
|
+
* Validates individual form field configurations including input components,
|
|
8
|
+
* labels, placeholders, and data access paths.
|
|
9
|
+
*/
|
|
4
10
|
export declare const formFieldItem: v.GenericSchema<FormFieldItem>;
|
|
11
|
+
/**
|
|
12
|
+
* Configuration for a single form field.
|
|
13
|
+
*
|
|
14
|
+
* Defines how a form field should be rendered, including its input component,
|
|
15
|
+
* label text, data binding path, and optional placeholder text.
|
|
16
|
+
*/
|
|
5
17
|
export type FormFieldItem = {
|
|
6
18
|
id: string;
|
|
7
19
|
accessorPath: string[];
|
|
@@ -9,42 +21,133 @@ export type FormFieldItem = {
|
|
|
9
21
|
label: string;
|
|
10
22
|
placeholder?: string;
|
|
11
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Valibot schema for form configurations.
|
|
26
|
+
*
|
|
27
|
+
* Validates complete form definitions including title, description,
|
|
28
|
+
* field configurations, and submit button labels.
|
|
29
|
+
*/
|
|
12
30
|
export declare const formItem: v.GenericSchema<FormItem>;
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for a complete form.
|
|
33
|
+
*
|
|
34
|
+
* Represents a form with optional title, description, field definitions,
|
|
35
|
+
* and customizable submit button label.
|
|
36
|
+
*/
|
|
13
37
|
export type FormItem = {
|
|
14
38
|
title?: string;
|
|
15
39
|
description?: string;
|
|
16
40
|
fields?: FormFieldItem[];
|
|
17
41
|
submitLabel?: string;
|
|
18
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Valibot schema for table column items.
|
|
45
|
+
*
|
|
46
|
+
* Validates table column configurations including formatter components,
|
|
47
|
+
* labels, and data access paths.
|
|
48
|
+
*/
|
|
19
49
|
export declare const tableColumnItem: v.GenericSchema<TableColumnItem>;
|
|
50
|
+
/**
|
|
51
|
+
* Configuration for a single table column.
|
|
52
|
+
*
|
|
53
|
+
* Defines how a table column should be rendered, including its formatter
|
|
54
|
+
* component, display label, and data binding path.
|
|
55
|
+
*/
|
|
20
56
|
export type TableColumnItem = {
|
|
21
57
|
id: string;
|
|
22
58
|
accessorPath: string[];
|
|
23
59
|
formatter: ModuleExport;
|
|
24
60
|
label: string;
|
|
25
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Valibot schema for table configurations.
|
|
64
|
+
*
|
|
65
|
+
* Validates complete table definitions including title, description,
|
|
66
|
+
* and column configurations.
|
|
67
|
+
*/
|
|
26
68
|
export declare const tableItem: v.GenericSchema<TableItem>;
|
|
69
|
+
/**
|
|
70
|
+
* Configuration for a complete table.
|
|
71
|
+
*
|
|
72
|
+
* Represents a table with optional title, description, and column definitions.
|
|
73
|
+
*/
|
|
27
74
|
export type TableItem = {
|
|
28
75
|
title?: string;
|
|
29
76
|
description?: string;
|
|
30
77
|
columns?: TableColumnItem[];
|
|
31
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Valibot schema for input items.
|
|
81
|
+
*
|
|
82
|
+
* Validates input component configurations including formatter components
|
|
83
|
+
* and data access paths.
|
|
84
|
+
*/
|
|
32
85
|
export declare const inputItem: v.GenericSchema<InputItem>;
|
|
86
|
+
/**
|
|
87
|
+
* Configuration for a single input component.
|
|
88
|
+
*
|
|
89
|
+
* Defines how an input should be rendered, including its formatter
|
|
90
|
+
* component and data binding path.
|
|
91
|
+
*/
|
|
33
92
|
export type InputItem = {
|
|
34
93
|
id: string;
|
|
35
94
|
accessorPath: string[];
|
|
36
95
|
formatter: ModuleExport;
|
|
37
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* Valibot schema for operation-level enrichments.
|
|
99
|
+
*
|
|
100
|
+
* Validates enrichment configurations that can be applied to OpenAPI operations,
|
|
101
|
+
* including table, form, and input component definitions.
|
|
102
|
+
*/
|
|
38
103
|
export declare const operationEnrichments: v.GenericSchema<OperationEnrichments>;
|
|
104
|
+
/**
|
|
105
|
+
* Enrichment configurations for a single OpenAPI operation.
|
|
106
|
+
*
|
|
107
|
+
* Contains optional table, form, and input configurations that can enhance
|
|
108
|
+
* how an operation is presented and interacted with in generated UIs.
|
|
109
|
+
*/
|
|
39
110
|
export type OperationEnrichments = {
|
|
40
111
|
table?: TableItem;
|
|
41
112
|
form?: FormItem;
|
|
42
113
|
input?: InputItem;
|
|
43
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Valibot schema for HTTP method-level enrichments.
|
|
117
|
+
*
|
|
118
|
+
* Maps HTTP methods (GET, POST, etc.) to their operation enrichment configurations.
|
|
119
|
+
*/
|
|
44
120
|
export declare const methodEnrichments: v.GenericSchema<MethodEnrichments>;
|
|
121
|
+
/**
|
|
122
|
+
* HTTP method to operation enrichments mapping.
|
|
123
|
+
*
|
|
124
|
+
* Associates HTTP methods with their corresponding operation enrichment configurations.
|
|
125
|
+
*/
|
|
45
126
|
export type MethodEnrichments = Record<string, OperationEnrichments>;
|
|
127
|
+
/**
|
|
128
|
+
* Valibot schema for API path-level enrichments.
|
|
129
|
+
*
|
|
130
|
+
* Maps API paths to their method enrichment configurations.
|
|
131
|
+
*/
|
|
46
132
|
export declare const pathEnrichments: v.GenericSchema<PathEnrichments>;
|
|
133
|
+
/**
|
|
134
|
+
* API path to method enrichments mapping.
|
|
135
|
+
*
|
|
136
|
+
* Associates API paths with their corresponding method enrichment configurations.
|
|
137
|
+
*/
|
|
47
138
|
export type PathEnrichments = Record<string, MethodEnrichments>;
|
|
139
|
+
/**
|
|
140
|
+
* Valibot schema for generator-level enrichments.
|
|
141
|
+
*
|
|
142
|
+
* Maps generator IDs to their path enrichment configurations,
|
|
143
|
+
* creating a complete hierarchy of enrichment data.
|
|
144
|
+
*/
|
|
48
145
|
export declare const generatorEnrichments: v.GenericSchema<GeneratorEnrichments>;
|
|
146
|
+
/**
|
|
147
|
+
* Generator ID to path enrichments mapping.
|
|
148
|
+
*
|
|
149
|
+
* Top-level enrichment structure that organizes enrichment data by generator,
|
|
150
|
+
* then by path, then by HTTP method, providing complete enrichment hierarchies.
|
|
151
|
+
*/
|
|
49
152
|
export type GeneratorEnrichments = Record<string, PathEnrichments>;
|
|
50
153
|
//# sourceMappingURL=Enrichments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enrichments.d.ts","sourceRoot":"","sources":["../../src/types/Enrichments.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9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EF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,aAAa,CAAC,iBAAiB,CAA8C,CAAA;AAE/G;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,aAAa,CAAC,eAAe,CAA2C,CAAA;AAExG;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC,oBAAoB,CAAyC,CAAA;AAEhH;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA"}
|
|
@@ -37,6 +37,12 @@ exports.generatorEnrichments = exports.pathEnrichments = exports.methodEnrichmen
|
|
|
37
37
|
require("../_dnt.polyfills.js");
|
|
38
38
|
const ModuleExport_js_1 = require("./ModuleExport.js");
|
|
39
39
|
const v = __importStar(require("valibot"));
|
|
40
|
+
/**
|
|
41
|
+
* Valibot schema for form field items.
|
|
42
|
+
*
|
|
43
|
+
* Validates individual form field configurations including input components,
|
|
44
|
+
* labels, placeholders, and data access paths.
|
|
45
|
+
*/
|
|
40
46
|
exports.formFieldItem = v.object({
|
|
41
47
|
id: v.string(),
|
|
42
48
|
accessorPath: v.array(v.string()),
|
|
@@ -44,33 +50,79 @@ exports.formFieldItem = v.object({
|
|
|
44
50
|
label: v.string(),
|
|
45
51
|
placeholder: v.optional(v.string())
|
|
46
52
|
});
|
|
53
|
+
/**
|
|
54
|
+
* Valibot schema for form configurations.
|
|
55
|
+
*
|
|
56
|
+
* Validates complete form definitions including title, description,
|
|
57
|
+
* field configurations, and submit button labels.
|
|
58
|
+
*/
|
|
47
59
|
exports.formItem = v.object({
|
|
48
60
|
title: v.optional(v.string()),
|
|
49
61
|
description: v.optional(v.string()),
|
|
50
62
|
fields: v.optional(v.array(exports.formFieldItem)),
|
|
51
63
|
submitLabel: v.optional(v.string())
|
|
52
64
|
});
|
|
65
|
+
/**
|
|
66
|
+
* Valibot schema for table column items.
|
|
67
|
+
*
|
|
68
|
+
* Validates table column configurations including formatter components,
|
|
69
|
+
* labels, and data access paths.
|
|
70
|
+
*/
|
|
53
71
|
exports.tableColumnItem = v.object({
|
|
54
72
|
id: v.string(),
|
|
55
73
|
accessorPath: v.array(v.string()),
|
|
56
74
|
formatter: ModuleExport_js_1.moduleExport,
|
|
57
75
|
label: v.string()
|
|
58
76
|
});
|
|
77
|
+
/**
|
|
78
|
+
* Valibot schema for table configurations.
|
|
79
|
+
*
|
|
80
|
+
* Validates complete table definitions including title, description,
|
|
81
|
+
* and column configurations.
|
|
82
|
+
*/
|
|
59
83
|
exports.tableItem = v.object({
|
|
60
84
|
title: v.optional(v.string()),
|
|
61
85
|
description: v.optional(v.string()),
|
|
62
86
|
columns: v.optional(v.array(exports.tableColumnItem))
|
|
63
87
|
});
|
|
88
|
+
/**
|
|
89
|
+
* Valibot schema for input items.
|
|
90
|
+
*
|
|
91
|
+
* Validates input component configurations including formatter components
|
|
92
|
+
* and data access paths.
|
|
93
|
+
*/
|
|
64
94
|
exports.inputItem = v.object({
|
|
65
95
|
id: v.string(),
|
|
66
96
|
accessorPath: v.array(v.string()),
|
|
67
97
|
formatter: ModuleExport_js_1.moduleExport
|
|
68
98
|
});
|
|
99
|
+
/**
|
|
100
|
+
* Valibot schema for operation-level enrichments.
|
|
101
|
+
*
|
|
102
|
+
* Validates enrichment configurations that can be applied to OpenAPI operations,
|
|
103
|
+
* including table, form, and input component definitions.
|
|
104
|
+
*/
|
|
69
105
|
exports.operationEnrichments = v.object({
|
|
70
106
|
table: v.optional(exports.tableItem),
|
|
71
107
|
form: v.optional(exports.formItem),
|
|
72
108
|
input: v.optional(exports.inputItem)
|
|
73
109
|
});
|
|
110
|
+
/**
|
|
111
|
+
* Valibot schema for HTTP method-level enrichments.
|
|
112
|
+
*
|
|
113
|
+
* Maps HTTP methods (GET, POST, etc.) to their operation enrichment configurations.
|
|
114
|
+
*/
|
|
74
115
|
exports.methodEnrichments = v.record(v.string(), exports.operationEnrichments);
|
|
116
|
+
/**
|
|
117
|
+
* Valibot schema for API path-level enrichments.
|
|
118
|
+
*
|
|
119
|
+
* Maps API paths to their method enrichment configurations.
|
|
120
|
+
*/
|
|
75
121
|
exports.pathEnrichments = v.record(v.string(), exports.methodEnrichments);
|
|
122
|
+
/**
|
|
123
|
+
* Valibot schema for generator-level enrichments.
|
|
124
|
+
*
|
|
125
|
+
* Maps generator IDs to their path enrichment configurations,
|
|
126
|
+
* creating a complete hierarchy of enrichment data.
|
|
127
|
+
*/
|
|
76
128
|
exports.generatorEnrichments = v.record(v.string(), exports.pathEnrichments);
|
|
@@ -12,8 +12,25 @@ import type { GeneratorKey } from './GeneratorKeys.js';
|
|
|
12
12
|
* 'regular' - will generate content only if it is selected.
|
|
13
13
|
*/
|
|
14
14
|
export type GenerationType = 'force' | 'regular';
|
|
15
|
+
/**
|
|
16
|
+
* Represents a value that can be generated by the SKMTC pipeline.
|
|
17
|
+
*
|
|
18
|
+
* Combines the Stringable interface with optional generator key metadata,
|
|
19
|
+
* allowing generated content to be associated with specific generators for
|
|
20
|
+
* tracking and organization purposes.
|
|
21
|
+
*/
|
|
15
22
|
export type GeneratedValue = Stringable & {
|
|
16
23
|
generatorKey?: GeneratorKey;
|
|
17
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Conditional type for generated definitions based on generation type.
|
|
27
|
+
*
|
|
28
|
+
* When generation type is 'force', always returns a Definition.
|
|
29
|
+
* When generation type is 'regular', returns Definition or undefined
|
|
30
|
+
* based on whether the content is selected for generation.
|
|
31
|
+
*
|
|
32
|
+
* @template V - The generated value type extending GeneratedValue
|
|
33
|
+
* @template T - The generation type ('force' or 'regular')
|
|
34
|
+
*/
|
|
18
35
|
export type GeneratedDefinition<V extends GeneratedValue, T extends GenerationType> = T extends 'force' ? Definition<V> : Definition<V> | undefined;
|
|
19
36
|
//# sourceMappingURL=GeneratedValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratedValue.d.ts","sourceRoot":"","sources":["../../src/types/GeneratedValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;;;;;GASG;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,cAAc,IACtB,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"GeneratedValue.d.ts","sourceRoot":"","sources":["../../src/types/GeneratedValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;;;;;GASG;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,cAAc,IACtB,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as log from '../deps/jsr.io/@std/log/0.224.14/mod.js';
|
|
2
|
+
/**
|
|
3
|
+
* Logger type alias for SKMTC operations.
|
|
4
|
+
*
|
|
5
|
+
* Re-exports the @std/log Logger type to maintain public API compatibility
|
|
6
|
+
* while providing type-safe logging throughout the SKMTC pipeline.
|
|
7
|
+
*/
|
|
8
|
+
export type Logger = log.Logger;
|
|
9
|
+
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/types/Logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AAEnE;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA"}
|