From bbd3eb6026068c184b07bc5634d60c3ecae2efe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rebecca=20K=C3=B6nig?= Date: Tue, 1 Oct 2024 15:11:46 +0200 Subject: [PATCH] feat: allow external resources to be set (#1400) --- index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9472cc1c..742d9348 100644 --- a/index.d.ts +++ b/index.d.ts @@ -161,12 +161,18 @@ export interface IValidation { [validation: string]: any } -export interface AllowedResource { +export interface ContentfulEntryResource { type: 'Contentful:Entry' source: string contentTypes: string[] } +export interface ExternalResource { + type: string +} + +export type AllowedResource = ContentfulEntryResource | ExternalResource + export type WidgetSettingsValue = number | boolean | string | undefined export interface IEditorInterfaceOptions {