Skip to main content

core.toperiod

Home > @medplum/core > toPeriod

toPeriod() function

Tries to convert an unknown input value to a Period object.

Signature:

export declare function toPeriod(input: unknown): Period | undefined;

Parameters

ParameterTypeDescription
inputunknownUnknown input value.

Returns:

Period | undefined

A Period object or undefined.