Copies values of all properties from passed object to the new object literal.
If any of the properties of passed object is also a complex object then cloneAsLiteral will be called recursively.
Function declarations are ignored.
value to clone.
resulted literal.
Coerce type of passed value.
For example if you pass string with value 'null' it returns null
, if you pass 'true' it returns boolean value true
, if you pass '1.0' it returns number 1.0
etc.
If passed value is complex object or array this method will be called for each property or array item.
value to coerce.
resulted value.
Cleaning up passed array by calling splice
function.
Next, each element of passed array will be checked for existence of destroy
method and if it exists it will be called.
array of elements to destroy.
if true
then iterating over array and destroy
methods calling will be executed via setTimeout (,0).
Annotation that can be used to configure type property as filter to use with FiltersService
specified by TypeScript automatically.
Returns filter configuration based on DefaultFilterConfig values with applied parameterName
and propertyName
properties values.
name of the property in target type
, for which configuration is created. This value will be used to set FilterConfig.propertyName and FilterConfig.parameterName values.
Set of key-value pairs which is used by coerceValue method to coerce specific values.
Generated using TypeDoc
Object literal used by getDefaultFilterConfig function to build filter configuration. This object can be used to change default values of filter configs globally. By default it has next values:
{ coerce: true, defaultValue: undefined, emptyIsNull: false, ignoreOnAutoMap: false, omitIfNullOrUndefined: false, parameterName: <value of 'propertyName' parameter>, parseFormatter: undefined, propertyName: <value of 'propertyName' parameter>, serializeFormatter: undefined }