Type alias Mapping<TResult, TResultKey>

Mapping<TResult, TResultKey>: MappingFunction<TResult, TResultKey> | MappingObject<TResult, TResultKey> | TResult[TResultKey]

CSS property mapping.

It is used to recognize raw property value and convert it to the one of the given type.

It is one of:

  • Default property value. Replaces the source property value, unless the the have the same type.
  • A mapping function. Replaces the source property value with the result of this function call.
  • An object containing mapping method called by(). Replaces the source property value with the result of this method call.

Type Parameters

  • TResult

    A type of mapped properties. This is an object containing mapped properties.

  • TResultKey extends keyof TResult

    Type of mapped properties keys.

Generated using TypeDoc