From b39b7927dde48542fde97b482593296d4b1e7725 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 3 Mar 2023 14:06:10 +0800 Subject: [PATCH] refactor(nocodb): implement ApiTokenType --- packages/nocodb/src/lib/models/ApiToken.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }