feat(client): ts-migrate client/src/utils (#42666)
* rename js files to ts * start migrating ajax * finish migrating ajax * migrate algolia-locale-setup * migrate format * migrate format.test * migrate get-words * install axios for types in handled-error * migrate handled-error * migrate handled-error.test * migrate report-error * migrate script-loaders * migrate to-learn-path * correct renamed imports * remove unnecessary type assertions in searchBar * remove unnecessary global comment * remove unnecessary max-len enable/disable * change axios imports to type imports * revert to .then() from await * use UserType from redux/prop-types * replace assertion with generic type * revert format to JS * remove unused getArticleById() * update putUpdateUserFlag() to use Record * remove unnecessary envData cast * update algolia-locale-setup types * remove invalid key property
This commit is contained in:
@@ -5,7 +5,7 @@ import { isError } from 'lodash-es';
|
||||
import { isHandledError, unwrapHandledError } from '../utils/handled-error';
|
||||
import { reportClientSideError } from '../utils/report-error';
|
||||
import { createFlashMessage } from '../components/Flash/redux';
|
||||
import reportedErrorMessage from '../utils/reportedErrorMessage';
|
||||
import reportedErrorMessage from '../utils/reported-error-message';
|
||||
|
||||
const errorActionSelector = action => isError(action.payload);
|
||||
|
||||
|
@@ -5,7 +5,7 @@ import { updateMyEmailComplete, updateMyEmailError } from './';
|
||||
import { createFlashMessage } from '../../components/Flash/redux';
|
||||
|
||||
import { putUserUpdateEmail } from '../../utils/ajax';
|
||||
import reallyWeirdErrorMessage from '../../utils/reallyWeirdErrorMessage';
|
||||
import reallyWeirdErrorMessage from '../../utils/really-weird-error-message';
|
||||
|
||||
function* updateMyEmailSaga({ payload: email = '' }) {
|
||||
if (!email || !isEmail(email)) {
|
||||
|
Reference in New Issue
Block a user