跳到主要内容
版本:Next

MidwayConfigService

Implements

Index

Constructors

constructor

Methods

publicadd

  • add(configFilePaths: any[]): void

publicaddFilter

  • addFilter(filter: (config: Record<string, any>) => Record<string, any>): void
  • add a config filter

publicaddObject

  • addObject(obj: Record<string, unknown>, reverse?: boolean): void

publicclearAllConfig

  • clearAllConfig(): void

publicclearConfigMergeOrder

  • clearConfigMergeOrder(): void

publicgetAppInfo

publicgetConfigMergeOrder

  • getConfigMergeOrder(): ConfigMergeInfo[]

publicgetConfiguration

  • getConfiguration(configKey?: string): any

publicload

  • load(): void