Checks if the given value is a valid Dayjs duration.
A duration is considered valid if and only if:
duration.asMilliseconds()
is not NaN
)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