0.0.1-beta.6 • Published 4 years ago
@wildberries/test-sdk-api v0.0.1-beta.6
@wildberries/test-sdk-api
Сгенерированный api-SDK
Интерфейс библиотеки
- Сам объект с запросами (APICreator)
- Типы для каждого запроса (typescript lang)
Доступные методы
- getAddRequest - запрос суммы из двух парметров
Пример
import { call } from 'redux-saga/effects';
import { APICreator, AdderResponseType } from '@wildberries/test-sdk-api';
import { requestTranslateFunction } from '@/_constants/i18next/i18next-constants';
import { FormValuesType } from '../_types';
export function* sendSumFormWorkerSaga(params: FormValuesType) {
const response: AdderResponseType = yield call(APICreator.getAddRequest, {
params,
translateFunction: requestTranslateFunction,
});
}
0.0.1-beta.6
4 years ago