|
1 |
| -import type { MonoSchemaParser } from "./src/schema-parser/mono-schema-parser"; |
| 1 | +import type { MonoSchemaParser } from "../src/schema-parser/mono-schema-parser"; |
2 | 2 |
|
3 | 3 | type HttpClientType = "axios" | "fetch";
|
4 | 4 |
|
@@ -212,7 +212,7 @@ interface GenerateApiParamsBase {
|
212 | 212 | * }
|
213 | 213 | * ```
|
214 | 214 | */
|
215 |
| - customTranslator?: new () => typeof import("./src/translators/translator").Translator; |
| 215 | + customTranslator?: new () => typeof import("../src/translators/translator").Translator; |
216 | 216 | /** fallback name for enum key resolver */
|
217 | 217 | enumKeyResolverName?: string;
|
218 | 218 | /** fallback name for type name resolver */
|
@@ -279,7 +279,7 @@ type PrimitiveTypeStructValue =
|
279 | 279 | | string
|
280 | 280 | | ((
|
281 | 281 | schema: Record<string, any>,
|
282 |
| - parser: import("./src/schema-parser/schema-parser").SchemaParser, |
| 282 | + parser: import("../src/schema-parser/schema-parser").SchemaParser, |
283 | 283 | ) => string);
|
284 | 284 |
|
285 | 285 | type PrimitiveTypeStruct = Record<
|
@@ -366,7 +366,7 @@ export interface Hooks {
|
366 | 366 | /** Start point of work this tool (after fetching schema) */
|
367 | 367 | onInit?: <C extends GenerateApiConfiguration["config"]>(
|
368 | 368 | configuration: C,
|
369 |
| - codeGenProcess: import("./src/code-gen-process").CodeGenProcess, |
| 369 | + codeGenProcess: import("../src/code-gen-process").CodeGenProcess, |
370 | 370 | ) => C | void;
|
371 | 371 | /** customize configuration object before sending it to ETA templates */
|
372 | 372 | onPrepareConfig?: <C extends GenerateApiConfiguration>(
|
@@ -657,11 +657,11 @@ export interface GenerateApiConfiguration {
|
657 | 657 | /** do not use constructor args, it can break functionality of this property, just send class reference */
|
658 | 658 | customTranslator?: new (
|
659 | 659 | ...args: never[]
|
660 |
| - ) => typeof import("./src/translators/translator").Translator; |
| 660 | + ) => typeof import("../src/translators/translator").Translator; |
661 | 661 | internalTemplateOptions: {
|
662 | 662 | addUtilRequiredKeysType: boolean;
|
663 | 663 | };
|
664 |
| - componentTypeNameResolver: typeof import("./src/component-type-name-resolver").ComponentTypeNameResolver; |
| 664 | + componentTypeNameResolver: typeof import("../src/component-type-name-resolver").ComponentTypeNameResolver; |
665 | 665 | fileNames: {
|
666 | 666 | dataContracts: string;
|
667 | 667 | routeTypes: string;
|
@@ -754,7 +754,7 @@ export interface GenerateApiOutput {
|
754 | 754 | renderTemplate: (
|
755 | 755 | templateContent: string,
|
756 | 756 | data: Record<string, unknown>,
|
757 |
| - etaOptions?: import("eta/dist/types/config").PartialConfig, |
| 757 | + etaOptions?: Partial<import("eta").EtaConfig>, |
758 | 758 | ) => string;
|
759 | 759 | getTemplate: (params: {
|
760 | 760 | fileName?: string;
|
|
0 commit comments