Skip to content

Documentation


Documentation / @blazetrails/activemodel / Conversion

Variable: Conversion ​

Conversion: { ClassMethods: { _toPartialPath: (this) => string; }; toKey: (this) => unknown[] | null; toModel: <T>(this) => T; toParam: (this) => string | null; toPartialPath: (this) => string; }

Defined in: packages/activemodel/lib/conversion.ts:18

Type Declaration ​

ClassMethods ​

ClassMethods: { _toPartialPath: (this) => string; }

ClassMethods._toPartialPath ​

_toPartialPath: (this) => string

Parameters ​
ParameterType
thisConversionHost
Returns ​

string

toKey ​

toKey: (this) => unknown[] | null

Parameters ​

ParameterType
thisobject

Returns ​

unknown[] | null

toModel ​

toModel: <T>(this) => T

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
thisT

Returns ​

T

toParam ​

toParam: (this) => string | null

Parameters ​

ParameterType
thisConversionRecord

Returns ​

string | null

toPartialPath ​

toPartialPath: (this) => string

Parameters ​

ParameterType
thisobject

Returns ​

string