From 0ea675039a3693fef5ab0eed28a1515fabf554f4 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Wed, 28 Sep 2022 22:10:31 -0400 Subject: [PATCH] Fix sort types --- packages/netlify-cms-core/index.d.ts | 2 +- packages/netlify-cms-core/src/interface.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/netlify-cms-core/index.d.ts b/packages/netlify-cms-core/index.d.ts index cd5631e9..7e5ac0f6 100644 --- a/packages/netlify-cms-core/index.d.ts +++ b/packages/netlify-cms-core/index.d.ts @@ -303,7 +303,7 @@ declare module 'netlify-cms-core' { export interface CmsSortableFieldsDefault { field: string; - direction: SortDirection; + direction?: SortDirection; } export interface CmsSortableFields { diff --git a/packages/netlify-cms-core/src/interface.ts b/packages/netlify-cms-core/src/interface.ts index cbe1c5a4..84d85587 100644 --- a/packages/netlify-cms-core/src/interface.ts +++ b/packages/netlify-cms-core/src/interface.ts @@ -572,7 +572,7 @@ export enum SortDirection { export interface CmsSortableFieldsDefault { field: string; - direction: SortDirection; + direction?: SortDirection; } export interface CmsSortableFields {