🔥 Object Trim Mixin for Barktler
yarn add @barktler/mixin-object-trim
# Or
npm install @barktler/mixin-object-trim --save
import { createObjectTrimMixin } from "@barktler/mixin-object-trim";
import { YourAPI } from "somewhere";
const api: YourAPI = new YourAPI();
api.useMixin(createObjectTrimMixin({
trimRequestBody: true,
trimResponseData: true,
}));
See Barktler Documents.