@jswork/transform-computed-interceptor
v1.0.9
Published
Transform request computed payload for http schema.
Downloads
48
Readme
transform-computed-interceptor
Transform request computed payload for http schema.
installation
npm install @jswork/transform-computed-interceptor
usage
import transformComputedInterceptor from '@jswork/transform-computed-interceptor';
const opts = {
adapter: 'Axios',
slim: true,
interceptors: [...interceptorRequest, ...interceptorResponse, ...transformComputedInterceptor],
transformResponse(inResponse) {
return inResponse.data;
},
};
nx.$api = httpSchema(schema, opts);
types
/// <reference types="@jswork/transform-computed-interceptor/global.d.ts" />
license
Code released under the MIT license.