Skip to content

Commit

Permalink
feat: export Action and ValidationError types (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold authored Oct 6, 2021
1 parent c729bf3 commit dcff361
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/types/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export interface SharedEditorSDK {
contentType: ContentTypeAPI
}

type CrudAction = 'create' | 'read' | 'update' | 'delete'
type PublishableAction = 'publish' | 'unpublish'
type ArchiveableAction = 'archive' | 'unarchive'
export type CrudAction = 'create' | 'read' | 'update' | 'delete'
export type PublishableAction = 'publish' | 'unpublish'
export type ArchiveableAction = 'archive' | 'unarchive'
export type JSONPatchItem = {
op: 'remove' | 'replace' | 'add'
path: string
Expand Down
20 changes: 19 additions & 1 deletion lib/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
export type {
AccessAPI,
AppExtensionSDK,
ArchiveableAction,
BaseExtensionSDK,
ConnectMessage,
ContentTypeAPI,
CrudAction,
DialogExtensionSDK,
EditorExtensionSDK,
EditorLocaleSettings,
Expand All @@ -16,6 +18,7 @@ export type {
NotifierAPI,
PageExtensionSDK,
ParametersAPI,
PublishableAction,
SharedEditorSDK,
SidebarExtensionSDK,
UserAPI,
Expand Down Expand Up @@ -84,6 +87,21 @@ export type {
SerializedJSONValue,
} from './utils'

export type { ValidationError } from './validation-error'
export type {
DateRangeValidationError,
InValidationError,
LinkContentTypeValidationError,
LinkMimetypeGroupValidationError,
NotResolvableValidationError,
ProhibitRegexpValidationError,
RangeValidationError,
RegexpValidationError,
RequiredValidationError,
SizeValidationError,
TypeValidationError,
UniqueValidationError,
UnknownValidationError,
ValidationError,
} from './validation-error'

export type { WindowAPI } from './window.types'

0 comments on commit dcff361

Please sign in to comment.