Properties Optional
Readonly
annotated annotated ?: AnnotateDefinition
Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:63 busy busy : boolean = false
Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:61 collection collection : T [ "collection" ] Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:58 data data : T [ "properties" ] = {} Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:55 delete delete : ( ( params ? ,
settings ? ) => CancellablePromise < T [ "delete" ] [ "response" ] > ) = ... Type declaration ( params ? , settings ? ) : CancellablePromise < T [ "delete" ] [ "response" ] > Parameters Optional
params : T [ "delete" ] [ "parameters" ] Optional
settings : Pick < { allowBatchRequest ?: boolean | Pick < { restNamespace : string ; restNonce ?: string ; restPathObfuscateOffset ?: string ; restQuery ?: object ; restRecreateNonceEndpoint ?: string ; restRoot : string ; } & { onQueueItemFinished ?: ( ( state ) => void ) ; signal ?: AbortSignal ; waitForPromise ?: Promise < void > ; } , "onQueueItemFinished" | "waitForPromise" > ; multipart ?: boolean | MultiPartOptions ; params ?: IRouteParamsInterface ; replayReason ?: ReplayReason ; request ?: IRouteRequestInterface ; sendReferer ?: boolean ; sendRestNonce ?: boolean ; settings ?: Partial < { body : ReadableStream < Uint8Array > ; bodyUsed : boolean ; cache : RequestCache ; credentials : RequestCredentials ; destination : RequestDestination ; headers : Headers ; integrity : string ; keepalive : boolean ; method : string ; mode : RequestMode ; redirect : RequestRedirect ; referrer : string ; referrerPolicy : ReferrerPolicy ; signal : AbortSignal ; url : string ; arrayBuffer ( ) : Promise < ArrayBuffer > ; blob ( ) : Promise < Blob > ; clone ( ) : Request ; formData ( ) : Promise < FormData > ; json ( ) : Promise < any > ; text ( ) : Promise < string > ; } > ; } & UrlBuilderArgs , "settings" | "allowBatchRequest" > Returns CancellablePromise < T [ "delete" ] [ "response" ] > Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:184 patch patch : ( ( params ? ) => CancellablePromise < void > ) = ...
Type declaration ( params ? ) : CancellablePromise < void > Parameters Optional
params : T [ "patch" ] [ "parameters" ] Returns CancellablePromise < void > Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:143 persist persist : ( ( params ? , settings ? ) => CancellablePromise < void > ) = ...
Type declaration ( params ? , settings ? ) : CancellablePromise < void > Parameters Optional
params : T [ "create" ] [ "parameters" ] Optional
settings : Pick < { allowBatchRequest ?: boolean | Pick < { restNamespace : string ; restNonce ?: string ; restPathObfuscateOffset ?: string ; restQuery ?: object ; restRecreateNonceEndpoint ?: string ; restRoot : string ; } & { onQueueItemFinished ?: ( ( state ) => void ) ; signal ?: AbortSignal ; waitForPromise ?: Promise < void > ; } , "onQueueItemFinished" | "waitForPromise" > ; multipart ?: boolean | MultiPartOptions ; params ?: IRouteParamsInterface ; replayReason ?: ReplayReason ; request ?: IRouteRequestInterface ; sendReferer ?: boolean ; sendRestNonce ?: boolean ; settings ?: Partial < { body : ReadableStream < Uint8Array > ; bodyUsed : boolean ; cache : RequestCache ; credentials : RequestCredentials ; destination : RequestDestination ; headers : Headers ; integrity : string ; keepalive : boolean ; method : string ; mode : RequestMode ; redirect : RequestRedirect ; referrer : string ; referrerPolicy : ReferrerPolicy ; signal : AbortSignal ; url : string ; arrayBuffer ( ) : Promise < ArrayBuffer > ; blob ( ) : Promise < Blob > ; clone ( ) : Request ; formData ( ) : Promise < FormData > ; json ( ) : Promise < any > ; text ( ) : Promise < string > ; } > ; } & UrlBuilderArgs , "settings" | "allowBatchRequest" > Returns CancellablePromise < void > Defined in ../../wordpress-packages/utils/lib/wp-api/objects/clientModel.tsx:97
When you pass
allowBatchRequest
, theafterDelete
is not called due to performance reasons. Please callafterDelete
andthis.collection.entries.delete
manually!