fix(types): fix user-facing config types in netlify-cms-core (#4985)

This commit is contained in:
Tyler Brostrom 2021-02-22 01:44:44 -06:00 committed by GitHub
parent 3e09b92b1f
commit 85dd8714d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@
declare module 'netlify-cms-core' {
import React, { ComponentType } from 'react';
import { List, Map } from 'immutable';
import { FILES, FOLDER } from 'netlify-cms-core/src/constants/collectionTypes';
export type CmsBackendType =
| 'azure'
@ -287,14 +286,12 @@ declare module 'netlify-cms-core' {
label: string;
field: string;
pattern: string;
id: string;
}
export interface ViewGroup {
label: string;
field: string;
pattern: string;
id: string;
pattern?: string;
}
export interface CmsCollection {
@ -318,7 +315,6 @@ declare module 'netlify-cms-core' {
nested?: {
depth: number;
};
type: typeof FOLDER | typeof FILES;
meta?: { path?: { label: string; widget: string; index_file: string } };
/**