Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 831 Bytes

normalize.md

File metadata and controls

41 lines (22 loc) · 831 Bytes

realueDocs


realue / normalize

Function: normalize()

normalize<T, K>(props, propertyName): NevoProps<T>

Normalizes the provided props from the provided propertyName.

Type Parameters

T

K extends string

Parameters

props: NevoPropsAdapted<T, K>

Propertyes according to the Nevo pattern.

propertyName: K

Name of the value property.

Returns

NevoProps<T>

Example

<SomeComponent {...normalize("option", props)} />

Defined in

lib/tools/normalize.ts:17