Skip to content

Commit

Permalink
perf: 插件类型支持泛型定义 (#14141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmeow authored Jul 10, 2023
1 parent 96bafa5 commit e2e7a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro/types/compile/config/project.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { IH5Config } from './h5'
import type { IMiniAppConfig } from './mini'
import { IRNConfig } from './rn'

export type PluginItem = string | [string, object] | [string, () => object | Promise<object>]
export type PluginItem<T = object> = string | [string, T] | [string, () => T | Promise<T>]

interface ICache {
/**
Expand Down

0 comments on commit e2e7a93

Please sign in to comment.