vovk 3.0.0-draft.90 → 3.0.0-draft.91
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/dist/types.d.ts +5 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ type GenerateFrom = (string | {
|
|
|
117
117
|
fullSchema?: string | boolean;
|
|
118
118
|
})[];
|
|
119
119
|
export type VovkConfig = {
|
|
120
|
-
emitConfig?: boolean |
|
|
120
|
+
emitConfig?: boolean | (keyof VovkStrictConfig)[];
|
|
121
121
|
clientOutDir?: string;
|
|
122
122
|
schemaOutDir?: string;
|
|
123
123
|
fetcherImport?: string | string[];
|
|
@@ -136,13 +136,15 @@ export type VovkConfig = {
|
|
|
136
136
|
controller?: string;
|
|
137
137
|
[key: string]: string | undefined;
|
|
138
138
|
};
|
|
139
|
+
custom?: Record<string, KnownAny>;
|
|
139
140
|
};
|
|
140
|
-
export type VovkStrictConfig = Required<Omit<VovkConfig, 'emitConfig' | 'validateOnClientImport' | 'fetcherImport' | 'createRPCImport' | 'generateFrom'>> & {
|
|
141
|
-
emitConfig:
|
|
141
|
+
export type VovkStrictConfig = Required<Omit<VovkConfig, 'emitConfig' | 'validateOnClientImport' | 'fetcherImport' | 'createRPCImport' | 'generateFrom' | 'custom'>> & {
|
|
142
|
+
emitConfig: (keyof VovkStrictConfig)[];
|
|
142
143
|
validateOnClientImport: string[] | null;
|
|
143
144
|
fetcherImport: string[];
|
|
144
145
|
createRPCImport: string[];
|
|
145
146
|
generateFrom: GenerateFrom;
|
|
147
|
+
custom: Record<string, KnownAny>;
|
|
146
148
|
};
|
|
147
149
|
export type VovkFullSchema = {
|
|
148
150
|
config: Partial<VovkStrictConfig>;
|
package/package.json
CHANGED