Skip to content

Commit

Permalink
fix: correct defineConfig parameter typing for extending umi
Browse files Browse the repository at this point in the history
  • Loading branch information
tinymins committed Dec 23, 2022
1 parent a197306 commit 94e7e76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.ts
Expand Up @@ -7,8 +7,9 @@ import type { IModify } from '@umijs/core';
import type { AssetsPackage, ExampleBlockAsset } from 'dumi-assets-types';
import type { Element } from 'hast';
import type { IApi as IUmiApi } from 'umi';
import { defineConfig as defineUmiConfig } from 'umi';

type IUmiConfig = IUmiApi['config'];
type IUmiConfig = Parameters<typeof defineUmiConfig>[0];

export interface IDumiConfig extends IUmiConfig {
resolve: {
Expand Down

0 comments on commit 94e7e76

Please sign in to comment.