Skip to main content

core.totypedvalue

Home > @medplum/core > toTypedValue

toTypedValue() function

Returns a "best guess" TypedValue for a given value.

Signature:

export declare function toTypedValue(value: unknown): TypedValue;

Parameters

Parameter

Type

Description

value

unknown

The unknown value to check.

Returns:

TypedValue

A "best guess" TypedValue for the given value.