Skip to content

TCollapsePropertyValue

Overview

Provides the value type of either a direct type OR the value of a Property (if it's a Property)

e.g. CollapsePropertyValue<number> is number e.g. CollapsePropertyValue<Property<number>> is number

@author Jonathan Olson <jonathan.olson@colorado.edu>

Type TCollapsePropertyValue

import type { TCollapsePropertyValue } from 'scenerystack/axon';

T extends TReadOnlyProperty<infer Value> ? Value : T

Source Code

See the source for TCollapsePropertyValue.ts in the axon repository.