fix(types): fix user-facing config types in netlify-cms-core (#4985)
This commit is contained in:
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' {
|
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 } };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user