From 401a4f214423cb65f9ebaccbf3a82c585351bb50 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 19 Jun 2023 12:36:12 +0400 Subject: [PATCH] Use LiteralUnion in storage_manager config --- src/storage_manager/config/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage_manager/config/config.ts b/src/storage_manager/config/config.ts index 12c0522cc..2480628ec 100644 --- a/src/storage_manager/config/config.ts +++ b/src/storage_manager/config/config.ts @@ -1,3 +1,4 @@ +import { LiteralUnion } from '../../common'; import Editor from '../../editor'; import { ProjectData } from '../model/IStorage'; import { LocalStorageConfig } from '../model/LocalStorage'; @@ -16,7 +17,7 @@ export interface StorageManagerConfig { * Available by default: 'local' | 'remote' * @default 'local' */ - type?: 'local' | 'remote'; + type?: LiteralUnion<'local' | 'remote', string>; /** * Enable/disable autosaving.