From 165c806136d2570d4e81ee9ab654f02868af6650 Mon Sep 17 00:00:00 2001 From: xuebin Date: Fri, 17 Apr 2020 02:06:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(PreferenceSchema):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A8=A1=E5=9D=97=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schemas/Preference.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/schemas/Preference.ts b/src/schemas/Preference.ts index 55e995c4b..0cb5028ee 100644 --- a/src/schemas/Preference.ts +++ b/src/schemas/Preference.ts @@ -10,8 +10,14 @@ import { import { RDBType, SchemaDef } from '../db' import { schemaColl } from './schemas' -export interface PreferenceTipMap { +export type PreferenceTipMap = { [key: string]: boolean | string +} & { + customPortal?: CustomPortalMap +} + +export interface CustomPortalMap { + [key: string]: boolean } export interface PreferenceSchema { @@ -146,7 +152,7 @@ const Schema: SchemaDef = { }, tips: { type: RDBType.OBJECT - } + }, } schemaColl.add({ name: 'Preference', schema: Schema })