From acc22d0b016d39a45326e6a756bb87196392f5f8 Mon Sep 17 00:00:00 2001 From: KBLonay Date: Mon, 30 Oct 2023 16:16:40 +0800 Subject: [PATCH] chore(core): fix type error (#111) --- packages/core/src/source.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/source.ts b/packages/core/src/source.ts index f84c10a04..229a89c00 100644 --- a/packages/core/src/source.ts +++ b/packages/core/src/source.ts @@ -1,7 +1,8 @@ import { Context, Schema } from 'koishi' +import type { Inject } from 'cordis' export abstract class ImageSource { - static inject = ['booru'] + static inject: string[] | Partial = ['booru'] languages: string[] = [] source: string