Skip to content

Commit

Permalink
feat: allow external resources to be set (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
veu authored Oct 1, 2024
1 parent b20125c commit bbd3eb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bbd3eb6

Please sign in to comment.