From 111abf6908f5c34adf5edbc75182728340c0a097 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 1 Mar 2023 19:02:58 +0800 Subject: [PATCH] refactor(nocodb): revise Base type --- packages/nocodb/src/lib/models/Base.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/nocodb/src/lib/models/Base.ts b/packages/nocodb/src/lib/models/Base.ts index 9cd94bf75d..0e3c4eca32 100644 --- a/packages/nocodb/src/lib/models/Base.ts +++ b/packages/nocodb/src/lib/models/Base.ts @@ -19,11 +19,18 @@ export default class Base implements BaseType { id?: string; project_id?: string; alias?: string; - type?: string; + type?: + | 'mysql2' + | 'sqlite' + | 'mysql' + | 'mssql' + | 'snowflake' + | 'oracledb' + | 'pg'; is_meta?: BoolType; - config?: any; - created_at?: any; - updated_at?: any; + config?: string; + created_at?: string; + updated_at?: string; inflection_column?: string; inflection_table?: string; order?: number;