---
title: "TransitionValueCodec | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias TransitionValueCodec<T>

Bridges a transitionable property's real value to/from the flat numeric props [MaptilerAnimation](https://docs.maptiler.com/sdk-js/api-reference/classes/MaptilerAnimation/) interpolates between.

type TransitionValueCodec<[T](#t)\> \= {  
    [fromNumeric](#fromnumeric-1)(props: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, number\>): [T](#t);  
    [toNumeric](#tonumeric-1)(value: [T](#t)): [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, number\>;  
}

#### Type Parameters

-   T

##### Index

### Methods

[fromNumeric](#fromnumeric) [toNumeric](#tonumeric)

## Methods

### fromNumeric[](#fromnumeric)

-   fromNumeric(props: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, number\>): [T](#t)[](#fromnumeric-1)
    
    #### Parameters
    
    -   props: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, number\>
    
    #### Returns [T](#t)
    

### toNumeric[](#tonumeric)

-   toNumeric(value: [T](#t)): [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, number\>[](#tonumeric-1)
    
    #### Parameters
    
    -   value: [T](#t)
    
    #### Returns [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<string, number\>
