diff --git a/packages/nocodb/src/lib/models/ApiToken.ts b/packages/nocodb/src/lib/models/ApiToken.ts index 028c194c59..2397268b85 100644 --- a/packages/nocodb/src/lib/models/ApiToken.ts +++ b/packages/nocodb/src/lib/models/ApiToken.ts @@ -7,8 +7,9 @@ import { import Noco from '../Noco'; import { nanoid } from 'nanoid'; import NocoCache from '../cache/NocoCache'; +import type { ApiTokenType } from 'nocodb-sdk'; -export default class ApiToken { +export default class ApiToken implements ApiTokenType { project_id?: string; db_alias?: string; fk_user_id?: string; @@ -18,7 +19,7 @@ export default class ApiToken { expiry?: string; enabled?: boolean; - constructor(audit: Partial) { + constructor(audit: Partial) { Object.assign(this, audit); }