Skip to content

@lubusin/wp-frappe-data-store / createFrappeRequest

Function: createFrappeRequest()

createFrappeRequest(config): FrappeRequest

Defined in: src/request.ts:53

Creates a default transport function (FrappeRequest) using native fetch based on store configuration.

Parameters

config

FrappeStoreConfig

Store configuration providing baseUrl, headers, and credentials.

Returns

FrappeRequest

A transport function accepting request options and returning parsed JSON response bodies.

Released under the MIT License.