fix(api-route-types): Fix cannot import type of api route from preset-umi/dist
MODIFY
packages/preset-umi/src/index.ts
packages/preset-umi/src/index.ts
+export type { UmiApiRequest, UmiApiResponse } from './features/apiRoute';
export type { IApi, IConfig, webpack } from './types';
export default () => {
return {

MODIFY
packages/umi/index.d.ts
packages/umi/index.d.ts
// @ts-ignore
export * from '@@/exports';
-export type { IApi, webpack } from '@umijs/preset-umi';
export type {
+ IApi,
+ webpack,
IRoute,
UmiApiRequest,
UmiApiResponse,
-} from '@umijs/preset-umi/src/types';
+} from '@umijs/preset-umi';
export * from './dist';

fix(api-route-types): Fix cannot import type of api route from preset-umi/dist (#527)