fix: added a TS type definition for local_backend schema field (#4662)

This commit is contained in:
Yuri Drabik 2020-11-30 13:25:29 +01:00 committed by GitHub
parent 878d0b757e
commit f28038d636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,6 +236,11 @@ declare module 'netlify-cms-core' {
clean_accents?: boolean;
}
export interface CmsLocalBackend {
url?: string;
allowed_hosts?: string[];
}
export interface CmsConfig {
backend: CmsBackend;
collections: CmsCollection[];
@ -251,6 +256,7 @@ declare module 'netlify-cms-core' {
publish_mode?: CmsPublishMode;
slug?: CmsSlug;
i18n?: CmsI18nConfig;
local_backend?: boolean | CmsLocalBackend;
}
export interface InitOptions {