@appsemble/utils
Version:
Utility functions used in Appsemble internally
4 lines (3 loc) • 396 B
TypeScript
import { type Remapper, type RequestLikeActionDefinition } from '@appsemble/lang-sdk';
import { type RawAxiosRequestConfig } from 'axios';
export declare function formatRequestAction({ method, query, ...action }: RequestLikeActionDefinition, data: unknown, remap: (remapper: Remapper, data: any, context: Record<string, unknown>) => any, context: Record<string, unknown>): RawAxiosRequestConfig;