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

View File

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