UNPKG

@mussnad/frappe-js-client

Version:

Next-generation TS/JS client for Frappe REST APIs, built on axios for robust, type-safe integration.

24 lines (23 loc) 740 B
/** Base response type for Frappe API calls */ export interface FrappeResponse { message: any; } /** * Typed response for Frappe API calls * @template T - The type of the message data */ export interface TypedResponse<T> extends FrappeResponse { message: T; } /** * Generic parameter type for API calls * @template K - Key type, must be string * @template V - Value type, must be string, number, boolean, or object */ export type ApiParams = Record<string, string | number | boolean | object>; /** * Generic data type for API calls * @template K - Key type, must be string * @template V - Value type, must be string, number, boolean, or object */ export type ApiData = Record<string, string | number | boolean | object>;