From 53e33edef782a087c415fa844521f2a338fde47f Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 29 Jul 2021 14:36:53 +0800 Subject: [PATCH] onlyoffice: mark api as optional --- packages/onlyoffice/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/onlyoffice/handler.ts b/packages/onlyoffice/handler.ts index 8764d169e..c751e5daa 100644 --- a/packages/onlyoffice/handler.ts +++ b/packages/onlyoffice/handler.ts @@ -3,7 +3,7 @@ import * as system from 'hydrooj/src/model/system'; declare module 'hydrooj/src/service/server' { interface UiContextBase { - onlyofficeApi: string; + onlyofficeApi?: string; } } UiContextBase.onlyofficeApi = system.get('onlyoffice.api');