共用方式為


SettingStringMock class

使用字串值模擬一或多個設定。

Extends

屬性

$kind
assignments

將指派設定為 settings.property=value 組。 依序指派設定。

繼承的方法

configure(Record<string, unknown>)

用於設定物件的 Fluent 方法。

getConverter(string)

屬性詳細資料

$kind

static $kind: string

屬性值

string

assignments

將指派設定為 settings.property=value 組。 依序指派設定。

assignments: SettingStringAssignment[]

屬性值

繼承的方法的詳細資料

configure(Record<string, unknown>)

用於設定物件的 Fluent 方法。

function configure(config: Record<string, unknown>): this

參數

config

Record<string, unknown>

要套用的組態設定。

傳回

this

作業完成之後 可設定

繼承自 Configure.configure

getConverter(string)

function getConverter(_property: string): Converter | ConverterFactory

參數

_property

string

條件式選取器組態的索引鍵。

傳回

Converter | ConverterFactory

選取器組態的轉換器。

繼承自 可設定.getConverter