gg-mysql-connector 1.0.35 → 1.0.36

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.
@@ -253,15 +253,7 @@ class ModelGenerator {
253
253
  }
254
254
  const fileName = `${params.appName}_model_const.ts`;
255
255
  const code = `
256
- type paramType = "number" | "string" | "any" | string[] | number[]
257
- interface constInterface {
258
- [keytable: string]: {
259
- [key: string]: paramType
260
- }
261
- }
262
-
263
-
264
- export const ${params.appName}_model_const : constInterface = { ${array.join(",")} } as const`;
256
+ export const ${params.appName}_model_const = { ${array.join(",")} } as const`;
265
257
  for (let row of params.outputDirectory) {
266
258
  const serverFilePath = path_1.default.join(row, fileName);
267
259
  await fs_1.default.writeFileSync(serverFilePath, code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg-mysql-connector",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -319,17 +319,9 @@ export default class ModelGenerator {
319
319
  }
320
320
  const fileName = `${params.appName}_model_const.ts`
321
321
  const code = `
322
- type paramType = "number" | "string" | "any" | string[] | number[]
323
- interface constInterface {
324
- [keytable: string]: {
325
- [key: string]: paramType
326
- }
327
- }
328
-
329
-
330
- export const ${
331
- params.appName
332
- }_model_const : constInterface = { ${array.join(",")} } as const`
322
+ export const ${params.appName}_model_const = { ${array.join(
323
+ ","
324
+ )} } as const`
333
325
 
334
326
  for (let row of params.outputDirectory) {
335
327
  const serverFilePath = path.join(row, fileName)