Skip to content

DurationTransformer.canTransform method

DurationTransformer › canTransform

Checks if the value is a Duration.

Signature:

canTransform(value: unknown): value is moment.Duration

Parameters:

ParameterTypeDescription
valueunknownThe value to check.

Returns: value is moment.Durationtrue if the value is a Duration, false otherwise.