diff --git a/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2Trans.ts b/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2Trans.ts index 1d77065af0..39280a8d54 100644 --- a/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2Trans.ts +++ b/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2Trans.ts @@ -2,7 +2,7 @@ import KnexMigratorv2Tans from '../../sql-migrator/lib/KnexMigratorv2Tans'; import SqlMgrv2 from './SqlMgrv2'; import type { Knex } from 'knex'; import type { XKnex } from '../../CustomKnex'; -import Base from '~/models/Base'; +import type Base from '~/models/Base'; import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2'; export default class SqlMgrv2Trans extends SqlMgrv2 { diff --git a/packages/nocodb/src/modules/event-emitter/nestjs-event-emitter.ts b/packages/nocodb/src/modules/event-emitter/nestjs-event-emitter.ts index d975fbfbb9..dedf7e9fb8 100644 --- a/packages/nocodb/src/modules/event-emitter/nestjs-event-emitter.ts +++ b/packages/nocodb/src/modules/event-emitter/nestjs-event-emitter.ts @@ -1,4 +1,4 @@ -import { EventEmitter2 } from '@nestjs/event-emitter'; +import type { EventEmitter2 } from '@nestjs/event-emitter'; import type { IEventEmitter } from './event-emitter.interface'; export class NestjsEventEmitter implements IEventEmitter { diff --git a/packages/nocodb/src/version-upgrader/v1-legacy/BaseApiBuilder.ts b/packages/nocodb/src/version-upgrader/v1-legacy/BaseApiBuilder.ts index 6281456269..30d4ef0f5f 100644 --- a/packages/nocodb/src/version-upgrader/v1-legacy/BaseApiBuilder.ts +++ b/packages/nocodb/src/version-upgrader/v1-legacy/BaseApiBuilder.ts @@ -4,13 +4,13 @@ import inflection from 'inflection'; import ncModelsOrderUpgrader from './jobs/ncModelsOrderUpgrader'; import ncParentModelTitleUpgrader from './jobs/ncParentModelTitleUpgrader'; import ncRemoveDuplicatedRelationRows from './jobs/ncRemoveDuplicatedRelationRows'; -import NcProjectBuilder from './NcProjectBuilder'; +import type NcProjectBuilder from './NcProjectBuilder'; import type { XKnex } from '~/db/CustomKnex'; import type { BaseModelSql } from '~/db/BaseModelSql'; import type { MetaService } from '~/meta/meta.service'; import type Noco from '~/Noco'; import type { MysqlClient, PgClient, SqlClient } from 'nc-help'; -import { DbConfig, NcConfig } from '~/interface/config'; +import type { DbConfig, NcConfig } from '~/interface/config'; import ModelXcMetaFactory from '~/db/sql-mgr/code/models/xc/ModelXcMetaFactory'; import NcConnectionMgr from '~/utils/common/NcConnectionMgr'; diff --git a/packages/nocodb/src/version-upgrader/v1-legacy/NcProjectBuilder.ts b/packages/nocodb/src/version-upgrader/v1-legacy/NcProjectBuilder.ts index fca7e0ba88..dcf98c0398 100644 --- a/packages/nocodb/src/version-upgrader/v1-legacy/NcProjectBuilder.ts +++ b/packages/nocodb/src/version-upgrader/v1-legacy/NcProjectBuilder.ts @@ -1,8 +1,8 @@ import { Router } from 'express'; import { GqlApiBuilder } from './gql/GqlApiBuilder'; import { RestApiBuilder } from './rest/RestApiBuilder'; -import Noco from '~/Noco'; -import { NcConfig } from '~/interface/config'; +import type Noco from '~/Noco'; +import type { NcConfig } from '~/interface/config'; import { SqlClientFactory } from '~/db/sql-client/lib/SqlClientFactory'; export default class NcProjectBuilder { diff --git a/packages/nocodb/src/version-upgrader/v1-legacy/gql/GqlApiBuilder.ts b/packages/nocodb/src/version-upgrader/v1-legacy/gql/GqlApiBuilder.ts index 22f8744ab9..518f753d58 100644 --- a/packages/nocodb/src/version-upgrader/v1-legacy/gql/GqlApiBuilder.ts +++ b/packages/nocodb/src/version-upgrader/v1-legacy/gql/GqlApiBuilder.ts @@ -1,10 +1,10 @@ import { Router } from 'express'; import BaseApiBuilder from '../BaseApiBuilder'; -import NcProjectBuilder from '../NcProjectBuilder'; +import type NcProjectBuilder from '../NcProjectBuilder'; import type XcMetaMgr from '~/interface/XcMetaMgr'; -import { DbConfig, NcConfig } from '~/interface/config'; -import { MetaService } from '~/meta/meta.service'; -import Noco from '~/Noco'; +import type { DbConfig, NcConfig } from '~/interface/config'; +import type { MetaService } from '~/meta/meta.service'; +import type Noco from '~/Noco'; import GqlXcSchemaFactory from '~/db/sql-mgr/code/gql-schema/xc-ts/GqlXcSchemaFactory'; export class GqlApiBuilder extends BaseApiBuilder implements XcMetaMgr { diff --git a/packages/nocodb/src/version-upgrader/v1-legacy/rest/RestApiBuilder.ts b/packages/nocodb/src/version-upgrader/v1-legacy/rest/RestApiBuilder.ts index d5d9b0b897..5c6180c6d3 100644 --- a/packages/nocodb/src/version-upgrader/v1-legacy/rest/RestApiBuilder.ts +++ b/packages/nocodb/src/version-upgrader/v1-legacy/rest/RestApiBuilder.ts @@ -1,10 +1,10 @@ import autoBind from 'auto-bind'; import BaseApiBuilder from '../BaseApiBuilder'; -import NcProjectBuilder from '../NcProjectBuilder'; +import type NcProjectBuilder from '../NcProjectBuilder'; import type { Router } from 'express'; -import { DbConfig, NcConfig } from '~/interface/config'; -import { MetaService } from '~/meta/meta.service'; -import Noco from '~/Noco'; +import type { DbConfig, NcConfig } from '~/interface/config'; +import type { MetaService } from '~/meta/meta.service'; +import type Noco from '~/Noco'; import NcHelp from '~/utils/NcHelp'; import ExpressXcTsRoutes from '~/db/sql-mgr/code/routes/xc-ts/ExpressXcTsRoutes'; import SwaggerXc from '~/db/sql-mgr/code/routers/xc-ts/SwaggerXc';