From 85dd8714d937c2ccafdb85de320758a4f245f9b3 Mon Sep 17 00:00:00 2001 From: Tyler Brostrom Date: Mon, 22 Feb 2021 01:44:44 -0600 Subject: [PATCH] fix(types): fix user-facing config types in netlify-cms-core (#4985) --- packages/netlify-cms-core/index.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/netlify-cms-core/index.d.ts b/packages/netlify-cms-core/index.d.ts index 17d8168e..29f71eb3 100644 --- a/packages/netlify-cms-core/index.d.ts +++ b/packages/netlify-cms-core/index.d.ts @@ -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 } }; /**