fetchDraft

Function

Fetches the draft for a site or page if exists.

Parameters

Parameter Type Default Notes
siteOrPageId Required string
hubRequestOptions Required IHubRequestOptions

Returns

Promise<IDraft>
Property Type Notes
data any
item Partial<IItem>

Function defined in packages/sites/src/drafts/fetch-draft.ts:25