fix(types): fix user-facing config types in netlify-cms-core (#4985)
This commit is contained in:
parent
3e09b92b1f
commit
85dd8714d9
6
packages/netlify-cms-core/index.d.ts
vendored
6
packages/netlify-cms-core/index.d.ts
vendored
@ -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 } };
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user