A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pigulla.github.io/class-validator-extended/functions/IsDuration-1.html below:

Website Navigation


IsDuration | class-validator-extended - v4.2.1

Checks if the given value is a valid Dayjs duration.

A duration is considered valid if and only if:

This requires the duration-plugin to be loaded. If this is not the case, an error will be thrown.

Example
// Ensure the value is a Dayjs duration.
@IsDuration()
value: Duration

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4