Skip to content

Commit

Permalink
feat: [] add option to entry publish method (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
loweisz authored Jul 12, 2022
1 parent 8fce9f0 commit e6aaab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default function createEntry(
getSys() {
return sys
},
publish() {
return channel.call<void>('callEntryMethod', 'publish')
publish(options?: { skipUiValidation?: boolean }) {
return channel.call<void>('callEntryMethod', 'publish', [options])
},
unpublish() {
return channel.call<void>('callEntryMethod', 'unpublish')
Expand Down
2 changes: 1 addition & 1 deletion lib/types/entry.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface EntryAPI extends TaskAPI {
/** Returns sys for an entry. */
getSys: () => ContentEntitySys
/** Publish the entry */
publish: () => Promise<void>
publish: (options?: { skipUiValidation?: boolean }) => Promise<void>
/** Unpublish the entry */
unpublish: () => Promise<void>
/** Saves the current changes of the entry */
Expand Down

0 comments on commit e6aaab1

Please sign in to comment.